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 the role of clr?
Explain the various objects in dataset.
Explain the difference in record set and dataset?
What is the full form of ado?
What are the data providers in ADO.NET framework?
Explain the differences between oledb sql server, oledbdotnet provider?
Describe connection object in ado.net
Why ca not we use multiple inheritance and garbage collector paralelly in .net?
What is ado.net code?
What is the full form of ado.net?
What two types of data providers does ADO.NET supply? What determines which one you should use?
Explain the two fundamental objects in ado.net?
Explain the different row versions available in table?
What is different between sqlcommand object and command behavior object?
What is data relation?