Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello, I have a myreader.read that will output true or null..

 

If the output is true, I need the _parent webpage to go to one website.. and if it is null, I need the _parent webpage to go to another one.

 

Here is my code:

 

           If myReader.Read Then '= True Then
               validationwindow.Text = "SP Result: True"
               Session("permission") = "YES" 'install session cookie
               'redirect user to ../start.asp
           Else
               validationwindow.Text = "SP Result: Null"
               'redirect user to page explaining why they don't have access
           End If

 

 

Also note.. if the result from the myreader.read is true.. I will create a session cookie = yes.

 

 

How can Ihave the aspx webpage automatically go to another website after it analyzes myreader.read?

 

 

thanks

Lee

Posted

Have u tried Response.Redirect("start.asp") ?

If your page is in the upper directory the u can use:

Response.Redirect("../start.asp")

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...