|
-
Apr 2nd, 2005, 01:03 PM
#1
Thread Starter
Frenzied Member
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|