.net - ASP.Net Ajax PageMethod - retain reference to DOM object -
When an ASP.Net pagemouth is called, we call this as:
Function doSomething (HtmlElement) {PageMethods.GetText (onSuccess, onFailure); }
What is the best way to maintain the context of HTMLElement in the above example, so that we can continue to work on the onsite success method with it?
Thanks for any help in advance
Due to the fact that Javascript Supports, you will not have to worry about retaining the context of the element; Since it has been fundamentally brought into success (assuming that you have written an unknown function in place of success).
Simply put, whatever function you put for you The success can already be used in the context of the element, passed as a parameter.
Comments
Post a Comment