Targeting post-backs
-
Guys; About targeting post-backs such as those caused by
LinkButton
s, we can set a target for the post-back form during the__doPostBack()
function by injecting the page with new definition of the function__doPostBack()
. Just like the code below:function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.target = __getPostBackTarget(eventTarget); // setting the form target according to the event trget.
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
theForm.target = ''; // reset the target of the form to its default value.
}
}My question is about the controls that has submission behavior such as input type submit and input type image
Help people,so poeple can help you.