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.
 
You can use several techniques to do this, the easiest is using OnClick.
 

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

Back
Top