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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Apr 7, 2010, 10:58 AM
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.
mohdazeemuddin ahmedPosted Apr 7, 2010, 8:20 AM
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
aravindPosted Apr 6, 2010, 5:44 AM