Click here to Skip to main content
15,896,453 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionfiltering search result Pin
hi_everybody4-Feb-10 0:01
hi_everybody4-Feb-10 0:01 
AnswerRe: filtering search result Pin
Dinesh Mani4-Feb-10 1:36
Dinesh Mani4-Feb-10 1:36 
GeneralRe: filtering search result Pin
4anusha44-Feb-10 1:41
4anusha44-Feb-10 1:41 
Questionstoring and retrieving colors from database Pin
sreeraj.a.173-Feb-10 22:30
sreeraj.a.173-Feb-10 22:30 
AnswerRe: storing and retrieving colors from database Pin
sashidhar3-Feb-10 22:46
sashidhar3-Feb-10 22:46 
AnswerRe: storing and retrieving colors from database Pin
Dinesh Mani4-Feb-10 1:25
Dinesh Mani4-Feb-10 1:25 
Questiondata is not saving in (inbuilt)database(WIndows Application)(Dotnet) Pin
kalyansantosh3-Feb-10 18:45
kalyansantosh3-Feb-10 18:45 
AnswerRe: data is not saving in (inbuilt)database(WIndows Application)(Dotnet) Pin
Abhijit Jana3-Feb-10 19:50
professionalAbhijit Jana3-Feb-10 19:50 
kalyansantosh wrote:
i developed a Windows apllication (Payroll)

This is ASP.NET Forum. Smile | :)
kalyansantosh wrote:
After closing the closing the application the data is not saving

I didn't get your point. Frown | :(
kalyansantosh wrote:
con = new SqlConnection();
con.ConnectionString = ConfigurationManager.ConnectionStrings["con"].ToString();
cmd = new SqlCommand("insert into TDept values('" + TXT_TDName.Text + "')", con);
//cmd.CommandText = q;
//cmd.CommandType = CommandType.Text;
//cmd.Parameters.AddWithValue("@TDName", TXT_TDName.Text);
con.Open();
int r = (int)cmd.ExecuteNonQuery();
Quote Selected Text

Did you tried to debug your code by putting breakpoint ? What is vlaue of cmd after execution of that line ?
cmd = new SqlCommand("insert into TDept values('" + TXT_TDName.Text + "')", con);

Why you are opening Connection after initilizing the Cmd ?

Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

QuestionSee Trace.axd for all asp.net pages Pin
Majid khosravi3-Feb-10 5:28
Majid khosravi3-Feb-10 5:28 
GeneralRe: See Trace.axd for all asp.net pages Pin
m@dhu3-Feb-10 18:22
m@dhu3-Feb-10 18:22 
QuestionDownload multiple Xml file Pin
<<Tash18>>3-Feb-10 2:13
<<Tash18>>3-Feb-10 2:13 
AnswerRe: Download multiple Xml file Pin
Not Active3-Feb-10 2:22
mentorNot Active3-Feb-10 2:22 
GeneralRe: Download multiple Xml file [modified] Pin
<<Tash18>>3-Feb-10 16:46
<<Tash18>>3-Feb-10 16:46 
GeneralRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 20:33
<<Tash18>>3-Feb-10 20:33 
AnswerRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 16:46
<<Tash18>>3-Feb-10 16:46 
AnswerRe: Download multiple Xml file Pin
Palash Biswas3-Feb-10 20:51
Palash Biswas3-Feb-10 20:51 
GeneralRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 21:21
<<Tash18>>3-Feb-10 21:21 
GeneralRe: Download multiple Xml file Pin
Ravindra Nidhonkar3-Feb-10 21:28
Ravindra Nidhonkar3-Feb-10 21:28 
GeneralRe: Download multiple Xml file Pin
Palash Biswas3-Feb-10 21:31
Palash Biswas3-Feb-10 21:31 
GeneralRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 21:59
<<Tash18>>3-Feb-10 21:59 
GeneralRe: Download multiple Xml file Pin
Palash Biswas3-Feb-10 22:07
Palash Biswas3-Feb-10 22:07 
GeneralRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 22:26
<<Tash18>>3-Feb-10 22:26 
GeneralRe: Download multiple Xml file Pin
Palash Biswas3-Feb-10 23:19
Palash Biswas3-Feb-10 23:19 
GeneralRe: Download multiple Xml file Pin
<<Tash18>>3-Feb-10 23:34
<<Tash18>>3-Feb-10 23:34 
AnswerRe: Download multiple Xml file [modified] Pin
Palash Biswas3-Feb-10 23:45
Palash Biswas3-Feb-10 23:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.