asp.net - Hyperlink with server side code in master page -


i guess should simple, but...

i have asp.net master page. in master page add hyperlink should fire server c# side event. posts read far says not use hyperlink, <asp:linkbutton> instead.

problem <asp:linkbutton> should in <form runat="server"> tag, since on master page, have form section, 1 below, , cannot have form section on 1 form.

<form runat="server">     <asp:contentplaceholder id="maincontent" runat="server"/> </form> 

so ideal plan b?


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -