linking inside vb.net If loop

trend

Centurion
Joined
Oct 12, 2004
Messages
171
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:

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
 
Have u tried Response.Redirect("start.asp") ?
If your page is in the upper directory the u can use:
Response.Redirect("../start.asp")
 
Back
Top