Technical support This forum is closed.
Version 1.x > Technical support > 2 Forms on one Page Template View modes: 
User avatar
Member
Member
JeremyThake - 1/12/2006 3:26:14 AM
   
2 Forms on one Page Template
You need a form tag with a runat=server in it to get asp.net webcontrols to work on a page ttemplate. I want to be able to add a content area with a html form tag with input's in it so the admin users can edit the form layout themselves (BizForms doesn't have layout settings)...but the main runat=server form tag takes priority and posts back to itself all the time...anyone ever done this with two forms on one asp.net page?

User avatar
Member
Member
JeremyThake - 1/13/2006 3:04:23 AM
   
Re: 2 Forms on one Page Template
Petr,

I know you mentioned improving the layout on BizForms...is this going to be soon?

When is v2.0 going to be released? Do you have a roadmap?

Jeremy

User avatar
Guest
admin - 1/13/2006 2:59:32 PM
   
Re: 2 Forms on one Page Template
Hi Jeremy,

Thank you for your message. Unfortunately, I don't know any solution for the "2 forms" issue.

We do not have a detailed schedule for version 2.0 yet, but we would like to publish probably in April.

Best Regards,

User avatar
Member
Member
JeremyThake - 1/17/2006 3:47:36 AM
   
Re: 2 Forms on one Page Template
I've found a "half clean" way of doing this.

I've created a Page Template which has a function in the page load that checks whether it's a post back and whether there is a hidden form value in it called 'action'.

If it has then it has a case statement to find out what it should do, in this case an email.

I then grab the values i need to set to, from etc. and then loop through all of the request.form keys and output them to the email body in a table and send it off.

At least this way they can do email forms...I've hidden any form keys with '__' in it. Obviously this could be customised some more too for specific cases but allows the content administrator to have some flexibility.

Jeremy

User avatar
Guest
admin - 1/17/2006 8:19:44 AM
   
Re: 2 Forms on one Page Template
Hi Jeremy,

Thank you for this useful tip!

Best Regards,

User avatar
Member
Member
cpaul - 1/23/2006 10:01:00 PM
   
Re: 2 Forms on one Page Template
Doesn't ASP.Net 2.0 support multiple forms on one page?

User avatar
Member
Member
TeddyG - 1/22/2009 9:54:56 PM
   
RE:Re: 2 Forms on one Page Template
Here's a simpler way i've been using when adding forms for 3rd party email providers like aweber and icontact...

All you need to do is modify the submit button using javascript:

<input type="submit" value="Submit" onclick="theForm.__VIEWSTATE.value='';theForm.encoding='application/x-www-form-urlencoded';theForm.action='https://www.someserver.com/scriptname.php';theForm.submit();" />

Although it would be a lot easier if we could just create basic HTML pages thru the admin and then just load these thru an iframe.