basically I have a button in my navbar which is defined in master file. And I want to call a c# method when that button**(bt)** is clicked. But I can not access the control in code-behind. I also need to control visibility, so I believe it has to stay in one of those Views.
<asp:GridView runat="server" ID="lw3">
<EmptyDataTemplate>
<ul class="nav navbar-nav navbar-right" style="color:#ffffff !important">
<li><a runat="server" href=""></a></li>
<li><a runat="server" href="" title=""></a></li>
<li><a runat="server" id="btout">bt</a></li>
</ul>
</EmptyDataTemplate>
</asp:GridView>