0
0
Hai
Senthilkumar : i got that but i need an example ill use select command and how can i make it display in text box
0
connectionString="Data source=localhost; initial catalog= example1; user id=sa password=sa"
0
Krishna Garad :you had mentioned "Ur connection string here" how can i get that idont know Im a beginner only
0
you can try like this
SqlConnection cn=new SqlConnection("U r Connection String Here...");
cn.Open();
SqlCommand cmd=new SqlCommand("Select * From TableName",cn);
DataSet ds=new DataSet();
SqlDataAdapter da=new SqlDataAdapter(cmd);
da.Fill(ds);
cn.Close();
//display data in textboxes from the dataset
TextBox1.Text=ds.Tables[0].Rows[0]["ColumnName"].ToString();
.....