Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Starting ModalPopup from Hyperlink Control and Keeping NavigateURL intact

$
0
0

Is it possible to start an event with the hyperlink control?


For example, when I press the control I need to start a modalpopup.

I know you may suggest to use a linkbutton but I cannot as I need to start a protocol handler (in the registry) that only starts with a direct link through the hyperlink control.

So, in my mind it should be something to this effect:

<

<asp:Hyperlink ID="HyperLink1" runat="server" navigateurl="protocol:handlerpath" click="Hyperlink1">


code behind:

Protected Sub Hyperlink1(ByVal sender as Object, byval e as system.web.ui.imageclickeventargs) handles hyperlink1.click

MyModalPopup.Show()


End Sub



Eh, but of course that doesn't work :)


Using the targetcontrol for the popup control as a hyperlink renders the hyperlink useless (as it will only open the modal popup) and not go to the navigateurl.

Any input appreciated.

Thank you!


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>