<html>
<head>
    <title>Call Server side Button event using JQuery</title>
     src="scripts/jquery-1.4.1.min.js" type="text/javascript">
     type="text/javascript">
        $(document).ready(function () {
            $("#lnkbtn").click(function () {
                $("#<%=Button1.ClientID %>")[0].click(); }); }); 
</head> 
<body>  
   <form id="form1" runat="server"> 
     <a id = "lnkbtn" href = "#">Click</a> 
     <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> 
   </form> 
</body> 
</html>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: