How do I make a panel hyperlinked? What I mean is I have a panel say 185px X 30px, and I want the user to click anywhere within the panel and take them to a new location.
I am building my own menu (similar to 3rd party panel menus), but need access to the click events because I need to set the urls at runtime. For example, this is what I have started with:
<div id="mnuDoc" class="menu_lv1" runat="server">
<asp:hyperlink id="lnkDoc" navigateurl="" runat="server">Documents</asp:hyperlink>
</div>
With this I can set the navigateurl in the codebehind page based on specific logic. The problem is only the hyperlink is "hot". The panel (or div tag) is not. I want to be able to click anywhere in the menu panel (185px X 30px). I can set an onclick event for the div tag, but I cannot (at least to my knowledge) set the value for the event in the codebehind page.
Any suggestions?
Thanks!
Check if this helps
http://asp.net/AJAX/Control-Toolkit/Live/DragPanel/DragPanel.aspx
http://asp.net/AJAX/Control-Toolkit/Live/CollapsiblePanel/CollapsiblePanel.aspx
0 comments:
Post a Comment