Mutiple Controls on one page?! Options
joninnz
Posted: Thursday, October 02, 2008 11:08:13 PM
Rank: Newbie

Joined: 10/2/2008
Posts: 1
Location: your backyard
How can I add more than one form control on the page and not get conflicts?

I'm using the MemberControl and Doc2Form on the same page.

One for login and one to enter a competition.


The problem:

When you enter text into the Doc2Form and press the submit button it works.
When you enter text into the Doc2Form and press enter it submits the memberLogin.
When you enter text into the memberLogin and press submit it trys to submit the Doc2Form aswell.
When you enter text into the memberLogin and press enter it trys to submit the Doc2Form aswell.


I've checked and have <?ASPNET_FROM> tags around the template and inside the body tags.

I've tried adding a controlID to the macros. Results were the same.

I've tried adding CausesValidation="False" to the button in the ascx file for the login control. This seems to fix half the problem but only when you click on the submit buttons. If you press enter the same problem occurs.

None of these work 100%. I just want a couple of regular forms to submit data without conflicting. Why is this even happening? Is ASP.NET always this complicated?

What am I missing here?

Thanks for any help.
Silverbug
Posted: Friday, October 03, 2008 3:26:27 AM

Rank: Enthusiast

Joined: 12/16/2007
Posts: 44
Location: Auckland, NZ
We had a similar problem with one of our sites, we ended up solving it but changing the membercontrol ascx file and removing the form from it. If you do that however you just need to make sure you have one somewhere else on the page.

Where abouts in NZ are you?

Paul
Sniper Systems Ltd
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.