Doing a sync(normal) postback from and gridview inside an ajax updatepanel
-
In the last days I started to add some ajax functionality to an existing non ajax application using aps.net ajax. One of the tasks was to move an existing gridview into an update panel so that it can be refreshed without page loading. The problem that I’ve encountered was that I couldn’t do a normal (sync) postback from the grid view. So I lost a half a day searching for an answer :(( . The solution is to use the ScriptManager RegisterPostBackControl function and register the links/buttons for which you need normal postback here.
foreach (GridViewRow row in ClaimGridView.Rows) { Control c = (Control)row.Cells[0].FindControl("myctrl"); ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(c); }
PS: :confused: I also tried using another UpdatePanel for my column and adding anasp:PostBackTrigger
but it didn't not work.Bogdan Developer e-Projects ro