Hi,
I have a problem in Application
Now in My Application have a TextBox1 in this Text Box Pass a connection String
& Second TextBox2 is Multiline TextBoxt in this TextBox To Write A SqlQuery .
& one Submit Button if u click in submit button then Result show in a label like(Command is Executed Succesfully or Any Error Message)
Please help me..
Sql Query Editor Text problem
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Shirsendu NandiRank #246 · 10.2K reputationPosted May 2, 2011, 6:00 AM EDT
Sqlconnection con=new SqlConnection(txtbox1.text);
con.open();
Sqlcommand cmd=new SqlCommand(txtbox2.text.con);
cmd.ExecuteNonquery();
con.close();
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted May 2, 2011, 4:20 AM EDT
thanks
Shirsendu NandiRank #246 · 10.2K reputationPosted May 3, 2011, 1:09 AM EDT