15,949,686 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Subrata.In (Top 43 by date)
Subrata.In
20-Jun-23 1:21am
View
Thanks everyone for valuable comments. I have no issue on code. Just want to know, if I send sms from my app (which is not default app for sms), will it violet any rule? If yes, how to send sms?
Subrata.In
3-Aug-21 12:14pm
View
Thanks for your reply. I try to connect using IP address (and also added port number). Also checked firewall. I added allow rules, where I specify server IP.
Subrata.In
12-May-20 22:52pm
View
Thank you so much. It solve my problem.
Subrata.In
13-Nov-19 6:40am
View
Thanks for your suggestion. I will try...
Subrata.In
25-Feb-19 13:47pm
View
As I say earlier, I have no idea about this. So, I want to get information from where I can get some information or who are doing this? Is there any private player or directly done by RBI?
Subrata.In
25-Feb-19 13:43pm
View
Yeas, you are right. It is risky job. Actually I want to get idea about this. Specially from where I can get some information/resources (like - we can get/accept payments through any payments gateway). Who do this job? Or is there any private player who providing any API? Or it is directly manage by RBI? If it done by RBI, who can access that API?...
Subrata.In
25-Feb-19 13:36pm
View
Thanks for your reply. I know that this may not appropriate forum for asking this question, but I do because, I notice that, here is some people who are really genius. They may work same type of project or have some idea.
Subrata.In
31-Aug-18 15:36pm
View
Thank you vary much for your reply, and also thanks for your link. It is very help full. But sorry to say that I am not able to figure out the problem.
1. Yes, report file in correct location.
2. Data Source & Data Structure are correct and also loading data properly (I used it on GridView for checking).
3. Parameter also correct.
There is no error/exception occur. I try to figure out by step by step break point, which is given below.
ReportDocument _rpt = new ReportDocument();
-> So many exception
_rpt.Load(Server.MapPath("rpt_Demo.rpt"));
-> HasRecords = '_rpt.HasRecords' threw an exception of type 'CrystalDecisions.CrystalReports.Engine.LogOnException'
_rpt.SetParameterValue("Report_Data", "Hello! How are you?");
-> Same as above
_rpt.SetDataSource(_Data);
-> HasRecords = Function evaluation timed out. And all after this
crv_Report.ReportSource = _rpt;
-> DefaultXmlExportSelection = '_rpt.DefaultXmlExportSelection' threw an exception of type 'System.NullReferenceException'
Please Note:
a) At the time of designing I use belo table/database for preparing report :
MS OLEDB Provider for SQL Server -> A Demo Databse which store tables as per require data structure
b) On your 1st example :
rpt_Demo _rpt = new rpt_Demo()
where I use :
ReportDocument _rpt = new ReportDocument();
_rpt.Load(Server.MapPath("rpt_Demo.rpt"));
That's only the diff (I can not access rpt_Demo directly, it throwing [The type or namespace name 'rpt_Demo' could not be found (are you missing a using directive or an assembly reference?)]).
Sorry for lengthy reply.
Subrata.In
10-Jul-18 1:49am
View
Thanks you so much for you reply. It will help me for future...
Subrata.In
7-Jul-18 7:31am
View
Thanks for your reply. You are right base class method not executing. I changed : this.SelectionChanged += new System.EventHandler(this.base_SelectionChanged) -> base.SelectionChanged += new System.EventHandler(this.base_SelectionChanged)
Subrata.In
27-Nov-17 0:11am
View
Thanks
Subrata.In
25-Nov-17 2:28am
View
Hi! Is it the wrong community/platform to ask this question? Please give any suggestion where to post my question.
Subrata.In
15-Sep-14 5:51am
View
try this:
for (int l = 0; l < str.Length-1; l += chunkLength)
instead of:
for (int l = 0; l < str.Length; l += chunkLength)
Subrata.In
15-Sep-14 5:48am
View
Deleted
try:
for (int l = 0; l < str.Length-1; l += chunkLength)
instead of:
for (int l = 0; l < str.Length; l += chunkLength)
Subrata.In
13-Sep-14 2:55am
View
Thanks for your response. However, i think you overlook my question. I am not trying to connect 192.168.xx.xx. My question is how to connect PC-01 to PC-A.
Thanks in advance.
Subrata.In
12-Sep-14 7:58am
View
Is it possible to explain more.
Subrata.In
12-Sep-14 1:11am
View
Thanks for your comments. In above example 116.203.188.231 is target machine ip address.
1. I think it is not mandatory that isp provide 116.203.188.231 ip for me only (it may by shared by other user also).
2. On my end i have a broadband router where 5 computer connected (Eg: 192.168.1.2 to 198.168.6). So how can i connect 192.168.1.2?
So how can i connect <116.203.188.231>.<port>.<192.168.1.2>? Or can you inform me where can I found the resource for learn how web server send data to a specific machine (browser)?
Subrata.In
23-Jan-13 23:42pm
View
If your birth day field storing date and time then you can try:
SELECT * FROM student WHERE birthday BETWEEN '"+FromDate.ToString("dd-MMM-yyyy")+"' AND '"+ToDate.ToString("dd-MMM-yyyy 23:59:59")+"'
Store birth day without time and fetch using "dd-MMM-yyyy" format.
Subrata.In
23-Jan-13 15:25pm
View
You are Welcome.
It's a very simple and also common problem, but it take long time to identify. Always use proper datatype else especially datetime data, store "dd-MMM-yyyy" format to avoid conversion error.
Good night.
Subrata.In
23-Jan-13 15:10pm
View
Yes I know, for this reason I am telling to store "23-Jan-2013" format not "23/01/2013" this format. May sql server treat first two digit as month. I think if you store '01/01/2013' it will not raise any error.
So either store that format or recreate table (and drop previous table: drop table <tablename>) with datetime field.
Subrata.In
23-Jan-13 15:00pm
View
You are inserting "dd-MMM-yyyy HH:m:s" fromat means "23-Jan-2013 1:27:30", so why it is showing 23/01/2013 18:56:27?
In normal in your data is showing correct format, but it is sure there is some wrong may there some unnecessary space or anything.
It is better you change your data type or check there is some mistake on insertions.
Subrata.In
23-Jan-13 14:49pm
View
Insert data "dd-MMM-yyyy HH:m:s" format.
I think you are using: DateTime.Now.ToString()
Use DateTime.Now.ToString("dd-MMM-yyyy HH:m:s")
Subrata.In
23-Jan-13 14:28pm
View
Try to insert data "dd-MMM-yyyy HH:m:s" format. Or post your insert query for the table Logindata.
Subrata.In
23-Jan-13 14:20pm
View
Post the result of Select * from logindata, if possble post your insert query.
Subrata.In
23-Jan-13 13:58pm
View
Check system date using:
Select GetDate()
Subrata.In
23-Jan-13 13:44pm
View
Execute this query on query eitor:
select [UserName], [LoginTime], [LogoutTime], [Upload] as 'UploadFile', [Download] as 'DownloadFile' from logindata where DateDiff(d, Cast([logintime] as datetime),'23-Jan-2013')=0
And check what message showing. If possible show the script of that table.
Subrata.In
23-Jan-13 13:13pm
View
It will be better to change datatype in database (in datetime by dropping and re-creating table). However, I am sure there is some wrong/junk value in logintime. Use: Select * from table name and check care fully the fields. You can post your insert query, problem may be there (inserting data in wrong format).
Subrata.In
23-Jan-13 12:32pm
View
Still this problem not solved? It is very simple query. However please try this if not solved, try to execute this query to query editor (SQL Server) and check what message is showing.
If you change the field type to datetime:
select [UserName], [LoginTime], [LogoutTime], [Upload] as 'UploadFile', [Download] as 'DownloadFile' from logindata where DateDiff(d, [logintime],'" + YourDate.ToString("dd-MMM-yyyy") + "')=0
If you unable to change the field type to datetime:
select [UserName], [LoginTime], [LogoutTime], [Upload] as 'UploadFile', [Download] as 'DownloadFile' from logindata where DateDiff(d, Cast([logintime] as datetime),'" + YourDate.ToString("dd-MMM-yyyy") + "')=0
Subrata.In
23-Jan-13 11:01am
View
You can try previous query or this:
SqlDataAdapter da = new SqlDataAdapter("select UserName, LoginTime, LogoutTime, Upload UploadFile, Download DownloadFile from logindata where DateDiff(d, Cast(logintime as datetime)," + YourDate.ToString() + ")=0", con);
Subrata.In
23-Jan-13 10:43am
View
What is the data type of logintime? Try to change datatype as datetime. If not possible have to convert data type as datetime using cast(logintime as datetime).
Code will be:
SqlDataAdapter da = new SqlDataAdapter("select UserName, LoginTime, LogoutTime, Upload UploadFile, Download DownloadFile from logindata where month(cast(logintime as datetime))=" + YourDate.Month + " And day(cast(logintime as datetime))=" + YourDate.Day + " and year(cast(logintime as datetime))=" + YourDate.Year, con);
Subrata.In
23-Jan-13 10:21am
View
Sorry for my mistake there will be and before year. I modified the solution.
Subrata.In
11-Jan-13 5:01am
View
Just try:
cmd.Parameters.Add(new SqlParameter("PO_Date", mDT_PoHead.Rows[0]["PO_Date"]));
No require to convert to datetime, as well as there is no checking require for null.
Subrata.In
11-Jan-13 4:03am
View
In a single word you can't insert date in a specific format. It will manage by server and also regional settings of client system. But you can show date as your require format, before show date just format it.
On C#: use Conver.ToDateTime(Field[""]).ToString("dd/MM/yyyy")
On sql: create user define function and/or using DateName function
Subrata.In
11-Jan-13 3:30am
View
Fine, don't use default value. Just store Field=Null (Don't use quotation mark) id sql. When retrieving value just check for null, that's all.
Subrata.In
11-Jan-13 2:01am
View
If you got your answer it's ok. However your question is not clear. If it's possible give an output example.
On your loop Qid will replace current rows value, so try to use Qid+=Convert.ToInt32(dt2.Rows[0]["id"].ToString());
Subrata.In
24-Nov-12 23:20pm
View
I think you have write code for positioning control of text bow on re-size event or else of usercontrol. So when you are trying to make change of usercontrol then child control are re-locating. So fiend out where write Left/Top/Position properties in user control. If you did not fix your problem. Write your code and mention what you want to do.
Subrata.In
20-Nov-12 1:02am
View
Deleted
If you not specify your problem, how can I understand your problem?
Subrata.In
19-Nov-12 7:58am
View
What is the code inside button click event?
Subrata.In
19-Nov-12 5:14am
View
Why you are not using a id field in your table?
If it's not possible to add field in your table, you can do it by temporary table/variable.
Subrata.In
19-Nov-12 1:30am
View
Specify in details what you want to do.
Subrata.In
19-Nov-12 1:20am
View
It will avoid space from both end of string. Else your picturebox may visible if user provide space.
Subrata.In
19-Nov-12 0:19am
View
You are right.
It will be better if you do this:
pictureBox1.Visible = (textBox1.Text.Trim() != "");//For avoiding space
Subrata.In
18-Nov-12 8:25am
View
Why you want this dll?
Show More