15,915,702 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 Python 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 girish sp (Top 115 by date)
girish sp
28-Sep-12 5:50am
View
to test the same i just inserted some value to session and then tried to retrieve,
but the thing you said is correct "if Session key is not found, you s'd not get null exception error."
girish sp
3-Feb-12 21:53pm
View
thanks,even i was thinking for the same. i will try that. i just have to see how to keep track of the files in server temp folder and download them as a zip
girish sp
3-Feb-12 21:40pm
View
its not attachment,its a download."sorry my bad".yes i did run it under debugger.i am looping through the files and saving them in virtual path in server and then downloading it.but i want it to be done for multiple files but i got exception "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.". i could not make out where was i wrong
girish sp
23-Jan-12 23:37pm
View
that is about loading from a file,i already have a data table i need to load that table to mysql,may be i have to map columns and then load it,i could do it in sql but no way i could find out in mysql.
girish sp
22-Dec-11 2:19am
View
thanks buddy,works like a gem:)
girish sp
22-Dec-11 1:48am
View
yes
you are right
girish sp
22-Dec-11 1:48am
View
this is an example string
today it has been added
should be the answer
girish sp
19-Dec-11 6:13am
View
could you post your code behind?
girish sp
19-Dec-11 3:26am
View
i am little low in CSS,
girish sp
19-Dec-11 3:25am
View
if i specify the width it will be boxed in a rectangular shape,it wont be in horizontal fashion
girish sp
19-Dec-11 3:22am
View
Might be the prob is because i am placing the list inside the content place holder
girish sp
19-Dec-11 3:21am
View
this did not work,the tab still fits there:(
girish sp
11-Nov-11 5:14am
View
my code only worked,thanks for ur help
girish sp
8-Nov-11 7:36am
View
you should brief your question,if you explain the problem then we can help you out
girish sp
8-Nov-11 5:38am
View
thanks,will work it out!!
girish sp
8-Nov-11 3:56am
View
no this wont work..?
girish sp
8-Nov-11 3:56am
View
atleast how to select values starting with alphabets...
girish sp
21-Oct-11 2:21am
View
when they click back button all the events will happen in the page,so do validation ,so the textbox cant be empty..i want to avoid validation part when he clicks browser back button..
girish sp
20-Oct-11 7:25am
View
thanks
girish sp
20-Oct-11 7:25am
View
thanks.
girish sp
20-Oct-11 4:52am
View
hi,check out..i have pasted my code
girish sp
20-Oct-11 4:43am
View
Deleted
Hi,
the compare validation was working fine.i am taking inputs from two textbox(of type date)when user clicks ok i will take the difference of those two dates.if difference is greater than something i will display alert..when user enters dates which are in the required range it will navigate to next page.now when the user clicks back button the alert is displayed again..
girish sp
20-Oct-11 4:39am
View
i will post sample code i am doing ,may be then you will get idea what i am trying to do..
girish sp
20-Oct-11 4:38am
View
hi,
this control validation part was working fine,after user enters inputs i will take the difference between two textboxes(of type date),if the diff is greater than some value i will give alert.later user enters values whose diff is within that range and click ok,it will take him to next page,now upon back button i am getting
girish sp
20-Oct-11 3:39am
View
sure i will do this and mark as solved if it works, and thanks very much for your valuable answer.
girish sp
20-Oct-11 3:22am
View
if i clear those textboxes in pageload later i cannot read the dates in button click event of that page,it will be null and i will get exception
girish sp
20-Oct-11 0:38am
View
you mean back button of browser??because it happened when i clicked browser back button,no back button in my application.thanks for your reply
girish sp
20-Oct-11 0:38am
View
Deleted
you mean back button of browser??because it happened when i clicked browser back button,no back button in my application.
girish sp
13-Oct-11 8:44am
View
thanks Bala selvanayagam,for this hint..length is not a problem for me as my text max length is 3 digits,i will see if this works for me.
girish sp
13-Oct-11 8:15am
View
i know that ,but i want to know is there any way to hide only text not the control??
girish sp
13-Oct-11 6:40am
View
i dont want the value to be displayed in textbox back,
girish sp
13-Oct-11 6:37am
View
could you please be more clear?the visible option in textbox property makes the control visibile ,
girish sp
17-May-11 5:01am
View
my 5
girish sp
17-May-11 5:01am
View
my 5
girish sp
17-May-11 5:01am
View
my 5
girish sp
13-May-11 8:08am
View
thanks for your precious time:) solved..
girish sp
13-May-11 7:51am
View
thanks very much it worked,but if i place your code in property it did not work out i used the same thing before passing it to the query it worked thanks a lot..
girish sp
13-May-11 6:59am
View
<pre>
public int Insert(int printerid,int roadid,string FilePath,string FileName)
{
MySqlCommand cmd=null;
try
{
con.Open();
string str=string.Format("INSERT"
+"INTO"
+ "tbl_Driver"
+ "VALUES"
+ " tbl_Driver_PrinterName_id_fk=@printerid"
+ " tbl_Driver_roads_id_fk=@roadid"
+"tbl_Driver_filePath=@FilePath"
+ " tbl_Driver_fileName=@FileName");
//as it reads this line null ref exception i get cmd.Parameters.AddWithValue("@printerid",printerid);
cmd.Parameters.AddWithValue("@roadid",roadid);
cmd.Parameters.AddWithValue("@FilePath",FilePath);
cmd.Parameters.AddWithValue("@FileName",FileName);
cmd=new MySqlCommand(str,con);
return cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
throw ex;
}
finally
{
if(con!=null)
{
con.Close();
con.Dispose();
}
if(cmd!=null)
{
cmd.Dispose();
}
}
}</pre>
this is giving null reference exception as soon as it reads the command(after the line which i have marked with //)
girish sp
13-May-11 6:57am
View
Deleted
public int Insert(int printerid,int roadid,string FilePath,string FileName)
{
MySqlCommand cmd=null;
try
{
con.Open();
string str=string.Format("INSERT"
+"INTO"
+ "tbl_Driver"
+ "VALUES"
+ " tbl_Driver_PrinterName_id_fk=@printerid"
+ " tbl_Driver_roads_id_fk=@roadid"
+"tbl_Driver_filePath=@FilePath"
+ " tbl_Driver_fileName=@FileName");
//as it reads this line null ref exception i get cmd.Parameters.AddWithValue("@printerid",printerid);
cmd.Parameters.AddWithValue("@roadid",roadid);
cmd.Parameters.AddWithValue("@FilePath",FilePath);
cmd.Parameters.AddWithValue("@FileName",FileName);
cmd=new MySqlCommand(str,con);
return cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
throw ex;
}
finally
{
if(con!=null)
{
con.Close();
con.Dispose();
}
if(cmd!=null)
{
cmd.Dispose();
}
}
}
this is giving null reference exception as soon as it reads the command(after the line which i have marked with //)
girish sp
13-May-11 5:21am
View
where should i use this??i am passing path to a method,before passing as an argument it should consider \ in the path?
girish sp
13-May-11 5:19am
View
thats wat i was expecting,even i put a breakpoint and if i check it shows E:\folder1\folder2..
this really sucks!!
girish sp
13-May-11 5:16am
View
if i pass E:\\folder1\\folder2,in textbox,in mysql it would display E:\folder1\folder2
girish sp
13-May-11 5:15am
View
i m using sharpdevelop and mysql workbench
girish sp
13-May-11 5:15am
View
when i see the value at run time before passing it to a method ,it would still be E:\folder1\folder2 ,i don think its replacing the char??
girish sp
13-May-11 5:01am
View
Deleted
i m using sharpdevelop and mysql workbench
girish sp
13-May-11 5:00am
View
Deleted
when i see the value at run time before passing it to a method ,it would still be
E:\folder1\folder2 ,i don think its replacing the char??
girish sp
13-May-11 4:27am
View
if i enter E:\dir\another,my sql would take it as E:\dirnother,don know why??
girish sp
13-May-11 3:39am
View
my 5
girish sp
13-May-11 3:39am
View
my 5
girish sp
13-May-11 3:38am
View
thanks very much for the link..
i will revert back if i find any prob,
thanks again,
girish sp
13-May-11 3:36am
View
ok,i got..as my string varies for each entry i need to escape it every time..that is where i am struck..
any help would be appreciated.
girish sp
10-May-11 2:27am
View
i have to check for duplicates while editing some record because,as both the fields are editable user may enter the email id which is already present in the database??so now i think you understood my problem..
girish sp
6-May-11 4:13am
View
public int Insert(int printerid,int id,string FilePath,string FileName)
{
MySqlCommand cmd=null;
try
{
con.Open();
string str=string.Format("INSERT INTO tbl_Driver(tbl_PrinterName_id_fk,tbl_id_fk,tbl_filePath,tbl_fileName)VALUES('{0}','{1}','{2}','{3}')",printerid,id,FilePath,FileName);
cmd=new MySqlCommand(str,con);
return cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
throw ex;
}
finally
{
if(con!=null)
{
con.Close();
con.Dispose();
}
if(cmd!=null)
{
cmd.Dispose();
}
}
}
girish sp
6-May-11 3:12am
View
i am using the mysql database ,but unfortunately if you enter C:\data.txt it will be considered as C:data.txt
as merwara said i tried to insert@before the string it enters as @C:data.txt
i know @ works but i dont know the way to use with the string
girish sp
6-May-11 2:56am
View
if @ is used before the string then it will add \ to database as u said, will the following code work??or is there any other way to append @ and then send to mysql??
FilePath=FilePath.Insert(0,"@");
girish sp
6-May-11 1:32am
View
sorry,,i have added what errors i got!
girish sp
6-May-11 1:20am
View
i have shared the code,pls check out and let me know
girish sp
6-May-11 0:33am
View
i know that,that's where i am facing prob,
girish sp
2-May-11 6:49am
View
your question is not upto the point..can u elaborate the question??
girish sp
26-Apr-11 4:24am
View
my 5..thanks:)
girish sp
26-Apr-11 4:23am
View
my 5..thanks:)
girish sp
26-Apr-11 4:23am
View
my 5..thanks:)
girish sp
21-Apr-11 6:51am
View
last link is good one...i was searching for more detailed tutorial..anyways thanks..
girish sp
14-Apr-11 7:09am
View
my 5!!
girish sp
14-Apr-11 7:08am
View
double click is good option to go..my 5
girish sp
14-Apr-11 7:04am
View
my 5!!
girish sp
14-Apr-11 7:04am
View
toli-i thought its not possible..easy way to do..good answer!!my 5
girish sp
14-Apr-11 6:59am
View
please make sure you mention the title of the question properly!!do not post questions with these kind of titles.please make sure this point next time when you post the question..
girish sp
14-Apr-11 4:53am
View
thanks ravi:)
girish sp
13-Apr-11 6:22am
View
now,your collection helps me in future!!
girish sp
13-Apr-11 6:20am
View
thanks SAK
girish sp
13-Apr-11 6:13am
View
sure thing..
girish sp
13-Apr-11 6:10am
View
ya you wer right!!i was out of my mind while typing that comment..sorry..i have edited it...thanks for correcting me.
girish sp
13-Apr-11 5:49am
View
SAK-always your ans takes 5!!
girish sp
13-Apr-11 5:47am
View
good link..my 5!!
girish sp
13-Apr-11 5:41am
View
very detailed..mine 5!!
girish sp
13-Apr-11 5:11am
View
Good intro...
question doesnt seem to be understandable!!
girish sp
13-Apr-11 4:40am
View
thank you!!DAVE
girish sp
13-Apr-11 4:38am
View
perfect solution!!my 5..
girish sp
13-Apr-11 3:34am
View
its oops not opps..correct it..
girish sp
13-Apr-11 3:32am
View
SAK you are right..you can use concepts anywhere,what matters is using it effectively:)
my 5!!
girish sp
13-Apr-11 3:16am
View
thanks SAK..
girish sp
13-Apr-11 2:59am
View
SAK-tryparse is the best one!!my 5..
girish sp
13-Apr-11 2:53am
View
ok next time onwards..thank you..
girish sp
13-Apr-11 2:42am
View
wat you actually want to do in keypress event??
girish sp
1-Apr-11 3:11am
View
sure..
girish sp
1-Apr-11 3:10am
View
thanks
girish sp
1-Apr-11 3:10am
View
Deleted
thanks
girish sp
1-Apr-11 1:00am
View
there is no property called DateTimeForm!!its giving error.should i include any namespace??
do reply
girish sp
1-Apr-11 0:45am
View
thanks dave..
girish sp
31-Mar-11 9:07am
View
thanks for your valuable reply..
girish sp
31-Mar-11 9:00am
View
i have not tried this snippet..maybe tomorrow i will try this code..and let you know..i will reply to you tomorrow..
girish sp
30-Mar-11 8:34am
View
i have enhanced the question...
girish sp
30-Mar-11 6:01am
View
thanks..
girish sp
29-Mar-11 23:56pm
View
thanks for ur answer..
girish sp
29-Mar-11 23:54pm
View
@tarun-dont be so rude dude..i did not know i have to vote the answers..sorry for that..i wont repeat this again..sorry.
girish sp
29-Mar-11 23:54pm
View
@tarun-dont be so rude dude..i did not know i have to vote the answers..sorry for that..i wont repeat this again..sorry.
girish sp
29-Mar-11 23:50pm
View
thanks mkbohn...did it..my 5:)
girish sp
28-Mar-11 6:02am
View
actually i have got listview which can be edited,i will edit particular column and update the data using ListViewHitTestInfo hit=listView1.HitTest(e.X,e.Y); , i also want to know the column header name..of that particular column..how can it be done.
girish sp
25-Mar-11 4:55am
View
i am doing windows application..
girish sp
24-Mar-11 3:17am
View
@SAKryukov-u can do it..but datasource should be involved..but i forgot to mention no datasource is involved in my appln..can it be done.
girish sp
23-Mar-11 4:38am
View
thanks for ur reply..
girish sp
23-Mar-11 4:38am
View
i want to compare only textbox1 contents,if it exists in the list or not,others may repeat...there exists the prob..i thought of splitting each content and then add into array,and when i click the add button next time it should check for textbox1 contents with the listbox..can this be done
girish sp
18-Mar-11 5:37am
View
@ramalinga-can u pls give me the syntax by passing the path..i tried but its giving exception as "could not find module".i m sure that the dll is present in that path.
girish sp
18-Mar-11 4:53am
View
i have used loadfrom("myassembly.dll");can i pass the dll located path as argument to assembly.loadfrom(path)??
girish sp
18-Mar-11 4:42am
View
i have used loadfrom("myassembly.dll");can i pass the dll located path as argument to assembly.loadfrom(path)??
girish sp
18-Mar-11 3:26am
View
thanks for ur reply..
girish sp
2-Mar-11 10:37am
View
thanks for ur reply..
girish sp
2-Mar-11 10:37am
View
//to disable X close button
const int MF_BYPOSITION = 0x400;
what about this line??how will it disable X close button?
girish sp
14-Jan-11 11:31am
View
animation is not at all supported????any alternatives??
girish sp
12-Jan-11 11:51am
View
dude this is basics..i want to read two dates from windows form and display the data between those dates in ms access on crystal report..sorry to say,this did not help me..
girish sp
6-Jan-11 10:29am
View
thanks.
girish sp
5-Jan-11 12:26pm
View
thanks,manfred.i know it will be recreated but i am made to write the code..its my job to do so.
girish sp
5-Jan-11 12:24pm
View
ya i know that issue..but i am made to do that..cant help..
girish sp
3-Jan-11 9:57am
View
i wrote code and its working..i will post it tomorrow..
Show More