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
What is ole in vb?
What is ado.net in mvc?
What is fill method in ado.net?
How to creating a SqlCommand Object?
Does entity framework use ado.net?
How to pass multiple tables in datasets simultaneously?
What are the namespaces used in ado.net for data access?
What is the role of clr?
What are all the classes that are available in System.Data Namespace?
What is the maximum pool size in ado.net connection string?
What is the difference between data reader and data adapter?
What is ado recordset?
Explain sqlconnection object?
Can we do database operations without using any of the ado.net objects?
How can we save all data from dataset?