Reputation: 2832
I've used ajax update panel in my web page. I want to set the trigger on the update panel. I have asp.net link button control placed in the asp.net repeater control. The content on the update panel should update when i click on the link button from repeater control. I used onclick event of the link button. Then how to set the trigger in this case?
thanks
Upvotes: 3
Views: 4234
Reputation: 2832
I solved the problem by using following way-
protected void rptPagerCustomerUp_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
LinkButton lb = e.Item.FindControl("lnkPage") as LinkButton;
ScriptManager.GetCurrent(this).RegisterAsyncPostBackControl(lb);
}
Upvotes: 6