How to Browse to a URL from a Button

slimasian

Newcomer
Joined
Feb 13, 2004
Messages
5
Hey Guys,

I'm a relative newbie to ASP.NET so go easy on me haha

Anyways, from a button on an ASP.NET web app (from VS.NET 2003), what would be the command line to allow to browse to a URL? e.g., user clicks the button, I run a conditional statement, and at the end it will redirect the user to a website based on a conditional statement.

Thanks for the help!

-slim
 
sub btnRedirect_Click(byval s as object, byval e as eventargs) handles btnRedirect.Click
If ThisIsTrue Then
Response.Redirect("newurl.htm")
End If
End Sub
 
Back
Top