Trouble binding to repeater through ajax call
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.
精彩评论