Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 887
Priyanka Avatar asked Nov 24 '25 14:11

Priyanka


1 Answers

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);  
}
like image 53
Priyanka Avatar answered Nov 27 '25 05:11

Priyanka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!