Hyperlink Web Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

When the user clicks on a hyperlink I want to cause something to happen
before the user is actually redirected to the page specified in the
navigateUrl proerty of the hyperlink. How do I do this? Can someone help me
with some code?

HS
 
What do you want to do?
You can handle client side onclick event by adding attribute to the control.
linkGo.Attributes.Add("onclick","javascript:doSomething()");
Where the doSomething is JavaScript function that you have to write.
Shimon Simchowitz
www.siatadev.com
 
Use a LinkButton instead.
In the server side click event you can execute your custom code and redirect
the user to another page.
 
Back
Top