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
How to read data with the sqldatareader ?
What are the data access namespaces in .NET?
What do you mean by performing asynchronous operation using command object?
What is ado.net and its architecture?
How can you add or remove rows from the datatable object of dataset?
Define isolation?
What is namespace in ado.net?
What is connected architecture in ado.net?
Explain ado.net features? Benefits? Drawbacks?
Name which operations can you not perform on an ado.net dataset?
What is difference between datareader and dataadapter?
Describe the disconnected architecture of ADO.NET’s data access model.
What is a sqldataadapter?
What is the difference between sqlcommand and sqldataadapter?
What is a dynaset in access?