hyperlink click event?

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

Guest

Does anyone know how to trigger the click event of a
hyperlink control programmatically?

Thanks for helping.
 
A hyperlink doesn't generate a server-side click event - a hyperlink is a
client-side event. What you would need to do is create a JavaScript that
navigates to the page that you want - and you can use the DOM to navigate to
the <a> element and grab the href that you want for a window.navigate or
window.open.
 
can I use VB.Net instead.
-----Original Message-----
A hyperlink doesn't generate a server-side click event - a hyperlink is a
client-side event. What you would need to do is create a JavaScript that
navigates to the page that you want - and you can use the DOM to navigate to
the <a> element and grab the href that you want for a window.navigate or
window.open.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Shell/UI
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--




.
 
If you want to do that, you'll be wanting to use a LinkButton control, not a
Hyperlink control.

Regards,
Anthony
 
Back
Top