Writing the lines of codes from a SqlDataReader
ok i am trying to write the lines of code that write the data in the sqldatareader to the html stream returned to client, THe name is a varchar(40) and age is an int(4).But i wanted my html to format the returned records..
THis is all i have so far
SqlCommand cm = new SqlCOmmand();
cm.Connection = conn;
Conn.Open()
cm.CommandText = "Select name, age from records";
SqlDataReader dr = cm.ExecuteReader();
Sorry for the dumb question...
Re: Writing the lines of codes from a SqlDataReader
Your question isn't clear. You want to format the output received in the datareader or do you want to write the vb.net code that you're using right now with the datareader?