Re: Forcing parent page postback
From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 04/06/04
- Next message: George: "RE: How to know which LinkButton clicked?"
- Previous message: Dune: "RE: How to know which LinkButton clicked?"
- In reply to: matt: "Re: Forcing parent page postback"
- Next in thread: Steven Cheng[MSFT]: "Re: Forcing parent page postback"
- Reply: Steven Cheng[MSFT]: "Re: Forcing parent page postback"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 06 Apr 2004 03:08:59 GMT
Hi Ashish,
I agree with Matt that you can do this via a javascript code snippet. For
example:
If we can a page which contain a iframe as below:
<iframe id="frmSub" src="inner.aspx" />
then, in the "inner.aspx", we can use the following javascript code to make
the parent(container) page be posted back:
window.parent.document.forms[0].submit();
or
window.parent.document.FormName.submit();
Either is ok. However, one thing should be noticed is that when call such
code to make the parent page be posted back, when the parent page is posted
back and refreshed, the iframe inner page will also be refreshed. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
- Next message: George: "RE: How to know which LinkButton clicked?"
- Previous message: Dune: "RE: How to know which LinkButton clicked?"
- In reply to: matt: "Re: Forcing parent page postback"
- Next in thread: Steven Cheng[MSFT]: "Re: Forcing parent page postback"
- Reply: Steven Cheng[MSFT]: "Re: Forcing parent page postback"
- Messages sorted by: [ date ] [ thread ]