Andi_SWE Posted September 28, 2003 Posted September 28, 2003 (edited) Hi. Like most of you I have realized that I can't have two runat server forms on the same page. Can someone help me out with an alternetive to using 2 runat server forms. This is what I want to do on my page: I want to make a page that looks alot like moste communitys out there. The pages contains a Header with the page logo, som quick links. Then I want to create some menues to the left with Links, adminoptions, useroptions. After that I needto have som space in the middel of the page to display what I want. And last but not least a menu to the right, with a Poll, Sponsors. (Ive used communitys like PHP-Nuke, Post-Nuke & ASP-Nuke as a model.) Im working alot with including files. Like I have the menues that are included, the stuff thats gonna be displayd in the center of the page is included. Most of my problems is those runat server forms. My Poll meny have one runat server form sp I can display the results and to vote. And I have a runat server in the useroptions menu that displays number of PMs, how many time s/he been logged on to the page. And when the user loggs on then the 2 from problem happens. And the problem also happens when other page combination dipslays on the site. I have tried to put a form runat server tag in the body tag so it includes the whole page. But thats became a problem when I have validation controls on the page. Like this. I use validation controls in the poll menu so that I cant vote if I have checked a value and I use a custom validation control on the logg in page and when I press vote or logg in it fires all the validation controls on the page. So If I want to log in the I have to check a value in the poll and vice versa. I think I have explain what my page looks like and my problem, so can anyone help me with an alternetive som my page can work like it should? //Andi Edited September 28, 2003 by Andi_SWE Quote
Moderators Robby Posted September 28, 2003 Moderators Posted September 28, 2003 The whole point of having one form per page is because you don't need more. Everything you described can be achieved with a single form. The web controls have events which can be used to figure out the users' selections. Quote Visit...Bassic Software
Andi_SWE Posted September 29, 2003 Author Posted September 29, 2003 Ok. Can you give me some example code on how I can get around fireing the page all Validation controlls? That one is my bigges problem. I have some pages with one form and lots of include files with lots of controlls that works fine until one or to pages were the Polls validation controlls get fired when members whant to changer there profile. //Andi Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.