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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programmatically click <asp:hyperlink> control

Status
Not open for further replies.

LindaH

Programmer
Dec 12, 2001
42
US
How would I programmatically click the <asp:hyperlink> web server control? (There's no click event.)
 
Do you need to actually click the html url for some reason, or just redirect the current page to a new page?

To redirect your page, you can use
this.Context.Response.Redirect(newURL);
in C#.

I'm not sure of the syntax in vb.net but it's probably similar.

Hope this helps!
TealWren
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top