Response.write only once

Results 1 to 2 of 2

Thread: Response.write only once

  1. #1
    Join Date
    Dec 1969

    Default Response.write only once

    I have a statement that I want to print to page only once. The statement is printing for every instance the code finds in the datbase because of the and loop statement. Is there a way to get it to print only once?

  2. #2
    Join Date
    Dec 1969

    Default RE: Response.write only once

    You could set a flag<BR><BR>Do While Not RS.EOF<BR><BR>If VarFlag="" Then<BR>response.write "something"<BR>End If<BR><BR>Varflag="True"<BR><BR>RS.Movenext<BR>Loo p<BR><BR>but showing your code could not hurt<BR>

Posting Permissions

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