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 basic use of data view?
What is the role of the dataset object in ado.net?
What are all features of ADO.Net?
Define the executescalar method?
What do you know about ado.net's methods?
What is the difference between ado.net and oledb?
What is disconnected architecture in ado.net?
Is ado.net an orm?
What is the difference in an abstract class and an interface?
What is sql command in ado net?
Which object needs to be closed?
What you mean by filtering of data?
What is dataset object? Explain the various objects in dataset.
Why ca not we use multiple inheritance and garbage collector paralelly in .net?
What is the difference between Command and CommandBuilder object?