G
Guest
I have a webform (frmMain) which contains an iframe. In this iframe I display
another webform (frmSub). I needed to submit frmSub from frmMain client-side,
so used the following javascript:
myIframe.document.forms[0].submit( );
It submits frmSub in the iframe, but the behaviour is not what I'd expect.
In the Page_Load event for frmSub, I would have thought when you do a form
submit it would be deemed as a postback (i.e. Page.IsPostBack = true), but
this is not the case. It treats it as if it were loaded for the first time.
Can anyone shed any light on the matter as I'm a little puzzled.
Many thanks
another webform (frmSub). I needed to submit frmSub from frmMain client-side,
so used the following javascript:
myIframe.document.forms[0].submit( );
It submits frmSub in the iframe, but the behaviour is not what I'd expect.
In the Page_Load event for frmSub, I would have thought when you do a form
submit it would be deemed as a postback (i.e. Page.IsPostBack = true), but
this is not the case. It treats it as if it were loaded for the first time.
Can anyone shed any light on the matter as I'm a little puzzled.
Many thanks