Repeater or Do While

Results 1 to 3 of 3

Thread: Repeater or Do While

  1. #1
    Join Date
    Dec 1969

    Default Repeater or Do While

    Remember those infinite loops in ASP caused by putting <BR>"while not rs.EOF" <BR>without putting <BR>"rs.MoveNext" <BR>at the end of the loop? <BR>In ASP.NET, I have been using repeaters and my pages time out the cpu on the server. Would I be better using the the "while read" way in ASP.NET to ensure no infinite loops instead of repeaters?

  2. #2
    Join Date
    Dec 1969

    Default RE: Repeater or Do While

    maybe try using datalist instead of repeater.<BR>i&#039;ve never had any problems with that.

  3. #3

    Default Assumtions ? invalid /valid

    You seem very quick to assume that the problems you have reside in the controls you are using.<BR><BR>Using a repeater, setting its datasource, the looping is not under your control, the MoveNext cannot be "left out".<BR>When you code with loops it remains possible to leave it out.<BR><BR>Show us how your code has been evolving.

Posting Permissions

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