Normally, you would expect to do this with
window.opener.document.forms[0].submit();
but this would not work because the IE implementation of form.submit() is
different from the standard implementation.
Nevertheless, there's a clever way to simulate a postback on the parent
window in javascript.
Put an invisible button to the parent page. Something like below;
<input type="submit" name="fakeButton" style="DISPLAY: none" value="Submit">
Then from the child window, do the following;
window.opener.document.forms[0].fakeButton.click();
This will submit the form back to itself, hence you have a postback.
Hope this helps,
Ethem Azun
"Abid Ali" wrote:
Dear All
I want to call dopostback of parent window from child window.
Scenerio
I am opening window from a page, and i have datatable in session which is
updating at parent window and at child window both.
when I close the child window and reloads the parent window from javascript
it lost all information because it walks into
"Not Ispostback" condition para.
How i can reload the parent page which did not walk into this condition
para.
Regards
Abid