Hi Guys,
Here Now I have completed with connection strings and all stuff,
now facing a problem that how to get those data in particulars textboxes.
Please Help....
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
aravind19 reputationPosted Apr 6, 2010, 1:44 AM EDT
mohdazeemuddin ahmed125 reputationPosted Apr 7, 2010, 4:20 AM EDT
you can use like this
string connectionstring = ConfigurationSettings.AppSettings["Connect"].ToString();
SqlConnection con = new SqlConnection(connectionstring);
con.Open();
SqlDataAdapter da = new SqlDataAdapter("Select Column1,Column2 from DataTable", con);
DataSet ds = new DataSet();
da.Fill(ds);
con.Close();
textbox1.text=ds.Tables[0].Rows[0][0].ToString();
textbox2.Text=ds.Tables[0].Rows[0][1].ToString();
Thats it
Sam HobbsRank #107 · 20.5K reputationPosted Apr 7, 2010, 6:58 AM EDT
Look at the right side of this window. Do you see "Our recommended articles"? I see there an article about data-binding in ASP.Net. That will likely help. You should look at the other articles in this web site; there are many articles and I am sure many will help you.