Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

gridview in updatepanel

$
0
0

Hi:

I meet a problem about gridview in updatepanel. The problem is when I press the link button in gridview, 

the gridview in updatepanel will not invoke postback. I have try the following method:

protected void OrderGrid_RowDataBound(object sender, GridViewRowEventArgs e)
{
   LinkButton lb = e.Row.FindControl("MarkAsCompleteButton") as LinkButton;
   ScriptManager.GetCurrent(this).RegisterAsyncPostBackControl(lb);
}

However, it is not working. the lb will always be null. Is that any good way to fix this problem in updatepanel, Thanks a lot.

 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>