none
Display recordset with "while". RRS feed

  • Question

  • Hello,

    I have a database with a lot of records.

    How can I display the recordset as a loop?

    If you didn't understand me, the same code in ASP is:

     

    Code Snippet

    <%
     Do While Not rsinfo.EOF

     str=str & rsinfo("text") & " <b>|</b> "

     rsinfo.MoveNext
     Loop
     %>

    <%=str%>

     

     I want to write the same code in C#, how can I do it?

    Thanks, Idan.

    Sunday, June 24, 2007 5:42 AM

Answers

All replies