flag question

Results 1 to 2 of 2

Thread: flag question

  1. #1
    Duc Guest

    Default flag question

    Hi,<BR>I am working on a page.asp where I have a form and when I submit this form it called the same page again but depend on the condition of the flag the script then take appropriate action.<BR>&#060;%<BR>Select Case Request("flag")<BR> Case 1<BR> Do something<BR> Case 2<BR> Do something<BR> Case Else<BR> Do Something<BR>End Select<BR>%&#062;<BR>&#060;form action="page.asp?flag=something"&#062;<BR>&#060;/form&#062;<BR><BR>Okie the problem is I want my page to execute Case Else for the first time this page load. How do I do that.<BR>thank,<BR>Duc

  2. #2
    Join Date
    Dec 1969

    Default RE: flag question

    &nbsp;<BR>&#060;%<BR>strflag=Request.QueryString(" Flag")<BR><BR>Select Case strflag<BR>Case 1<BR>response.write "1"<BR>Case 2<BR>response.write 2<BR>Case Else<BR>response.write "No Flag"<BR>End Select<BR>%&#062;

Posting Permissions

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