Sunday, 30 December 2012

Postback Page using Javascript in ASP.net

Postback Page using Javascript in ASP.net

For Calling Function:

__doPostBack('__Page', '');

Function:

function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }

No comments:

Post a Comment