TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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>
Reply
Answers (
2
)
How can i auto fill textboxes?
How to run jquery and code behind simultaneously