Priyanka
Priyanka

Reputation: 2832

How to set the update panel trigger for the control inside repeater control?

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

Answers (1)

Priyanka
Priyanka

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

Related Questions