Board index » Web Programming » Trigger PostBack from External webpage?

Trigger PostBack from External webpage?

Web Programming240
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


-
 

Re:Trigger PostBack from External webpage?

Lars,



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



window.opener.myForm.submit();



Eliyahu



"Lars Netzel" <uihsdf@adf.se>wrote in message

Quote
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









-

Re:Trigger PostBack from External webpage?

thank you that worked nice.



/Lars

"Eliyahu Goldin" <removemeegoldin@monarchmed.com>wrote in message

Quote
Lars,



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



window.opener.myForm.submit();



Eliyahu



"Lars Netzel" <uihsdf@adf.se>wrote in message

news:%23RZikEzwFHA.3856@tk2msftngp13.phx.gbl...

>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

>

>









-