Click to See Complete Forum and Search --> : Response.redirect


Dark_AngeL
05-18-2006, 09:39 AM
Hi ..

I have a button btnClose
I want the user to transfer to the menu page when he clicks the button


I did this

Sub btnClose_Click(sender As Object, e As EventArgs)
Response.Redirect("main.aspx")
End Sub




^ But it doesnt work ... !!! :mad:

RobDavid
05-18-2006, 10:53 AM
It should work, the only thing i see thats missing is

Handles btnClose.Click

try

Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
Response.Redirect("main.aspx")
End Sub

Dark_AngeL
05-18-2006, 02:49 PM
Thank you it works now :)