calling url through button in C#.net

Joined
Sep 14, 2006
Messages
5
Reaction score
0
Can't you just drag a button onto the form and trap the button's onclick event (double click the button control in VS designer), then execute a Response.Redirect, as follows:

protected void SubmitButton_Click(object sender, EventArgs e)
{
Response.Redirect("www.yahoo.com");
}
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,097
Latest member
RayE496148

Latest Threads

Top