First, I would like to explain Disadvantage using the Update Panel using the exact same example that you provided.
Below is the original code

Exit

To display a 22 character string, you can check how much data is received and sent to the server. Imagine the following
- If you want to send each
Database query using the Update Panel , and your GridView is in the Update Panel !!!!!! - Suppose you would use
ViewState data for each request and GridView Inside the Update Panel .
Both of the above methods are the worst in my understanding.
Now I will describe you Page Methods
Method Page Above Update Panel
Page Methods enable ASP.NET AJAX pages to directly execute Page's Static Methods using JSON (JavaScript Object Notation) . Instead of sending back and then receiving HTML markup , to completely replace our UpdatePanel's contents , we can use the Web Method to request only the information of interest.
Code example


Exit

Hope this clearly explains the difference in usage.
Response to the original request
You need to register the ItemDataBound event below Repeater and use the code below for it.
Code for
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { Button btn = (Button)e.Item.FindControl("Button1"); btn.OnClientClick = string.Format("SubmitButton('{0}');return false;" , HiddenButton.ClientID); } }
Javascript
<script type="text/javascript"> function SubmitButton(btn) { $("#" + btn).click(); } </script>
//Alternative
<script type="text/javascript"> function SubmitButton(btn) { document.getElementById(btn).click(); } </script>
Link and Here
source share