Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with link webpage

Status
Not open for further replies.

lehuong

Programmer
Sep 2, 2003
98
US
Hi all,
Below is my code:

If intResult = - 1 Then
lblMessage.Text = "Username Already Registered!"
Else
FormsAuthentication.RedirectFromLoginPage( txtUsername.Text, False )
''''Response.Redirect(" End If
End If

when I link back to my login page after register -->

FormsAuthentication.RedirectFromLoginPage( txtUsername.Text, False )

it give me this error:

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

but if I comment it out and use -->
Response.Redirect("
This will give me the the wrong link
Anyone has any idea what is wrong?

lehuong
 
Response.Redirect(pagename) will redirect to your current directory /pagename (i.e. localhost/pagename), that means it will also redirect to localhost/ If you want to redirect to a webpage, you have to put http:// in front of it. So use
Code:
Response.Redirect("[URL unfurl="true"]http://www.rmpcorp.com")[/URL]

regards,
Blaxo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top