Answer Posted / kalirajan
SqlConnection con = new SqlConnection("");
con.Open();
SqlCommand cmd = new SqlCommand("", con);
SqlDataReader dr;
dr = cmd.ExecuteReader();
while (dr.Read())
{
TextBox1.Text = dr[0].ToString();
}
dr.Close();
Try this code...
Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
Which architecture does Datasets follow?
What is openquery?
What is the difference between Response.Expires and Reponse.ExpiresAbsolute?
can we create synonymn in ms access,sql server,my sql if so explain me with example
What are the benefits of ADO.NET?
Define ado.net?
What is ado.net and its architecture?
Which is faster dataset or datareader?
What are the steps to connect to a database?
Which is faster entity framework or ado.net?
What is the use of ADO.NET and XML web services?
What is bubbled event?
What is data relation?
What is difference between ado and other data object?
How many major types of connection objects in ADO.NET?