Results 1 to 2 of 2

Thread: Writing the lines of codes from a SqlDataReader

  1. #1

    Thread Starter
    Frenzied Member joefox's Avatar
    Join Date
    Oct 2004
    Posts
    1,318

    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...

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width