开发者

Trouble binding to repeater through ajax call

开发者 https://www.devze.com 2023-01-24 13:13 出处:网络
I have a user control that contains a repeater, which in turn is nested in a default.aspx. When a user clicks a s开发者_StackOverflowpecific link on the page, the ajax post function is called which po

I have a user control that contains a repeater, which in turn is nested in a default.aspx. When a user clicks a s开发者_StackOverflowpecific link on the page, the ajax post function is called which posts data to a method on default.aspx. All good so far! This method then calls a method within the user control, passing in the data, which in turn is used to requery, and rebind the repeater.

For some reason, the page bails when I try to do this last part?

If this seems converluted, it's because it doesn't seem possible in jquery to directly access user control methods.

Many thanks.


Rebinding a repeater control, which is an ASP.NET server control, is done on the server side, not the client side. If you want some grid behavior with ajax I suggest you look at a javascript based grid like for example jqGrid.

0

精彩评论

暂无评论...
验证码 换一张
取 消