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 method is used to sort the data in ADO.Net?
How to copy the contents from one table to another table and how to delete the source table in ado.net?
What are basic methods of dataadapter?
What is csdl entity framework?
What is an example of ordinal data?
What is the use of adodc?
How to enable and disable connection pooling?
Which ado.net object is very fast in getting data from the database?
What is the executescalar method?
What is data control techniques?
Which database is the ado.net?
Do we use stored procedure in ADO.Net?
What is different between sqlcommand object and command behavior object?
What is sql command in ado net?
What is the difference in record set and dataset?