Aniruddh Kewat

Aniruddh Kewat

  • NA
  • 30
  • 20.7k

linkbutton click not working ?

Jun 23 2015 3:14 AM
linkbutton click not working ?
 
 
<script type="text/javascript">
    var categoryid = 0;
   $(document).ready(function () {     
`      $('.clbtnmenu').click(function () {
       categoryid = $(this).data('id');
       pageIndex = 1;
      });
   }); 
</script> 
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="main" style="width: 70%; margin: 0 auto; background-color:Aqua">
<div id="header">
<ul>
<li>
<asp:LinkButton CssClass="clbtnmenu" ID="LinkButton1" runat="server" data-id="1"
CommandArgument="1" OnClick="lbtnmenu_click">Mobile</asp:LinkButton></li>
<li>
<asp:LinkButton CssClass="clbtnmenu" ID="LinkButton2" runat="server" data-id="2"
CommandArgument="2" OnClick="lbtnmenu_click">Shoes</asp:LinkButton></li>
<li>
<asp:LinkButton CssClass="clbtnmenu" ID="LinkButton3" runat="server" data-id="3"
CommandArgument="3" OnClick="lbtnmenu_click">Bags</asp:LinkButton></li>
<li>
<asp:LinkButton CssClass="clbtnmenu" ID="LinkButton4" runat="server" data-id="4"
CommandArgument="4" OnClick="lbtnmenu_click">Clothing</asp:LinkButton></li>
</ul>
</div>
</div> 

Answers (2)