Trigger PostBack from External webpage?

L

Lars Netzel

I open a popup from an aspx page and when done working in the popup i I need
to update the aspx page in the background. I know how to get to the page in
the background thru JavaScript (window.opener.. ) but how do I trigger a
postback that will keep the viewstate of that page?

best regards/
Lars Netzel
 
E

Eliyahu Goldin

Lars,

You need to call the submit method of the form in your page. Try

window.opener.myForm.submit();

Eliyahu
 
L

Lars Netzel

thank you that worked nice.

/Lars
Eliyahu Goldin said:
Lars,

You need to call the submit method of the form in your page. Try

window.opener.myForm.submit();

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top