form submit

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
 

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