Last post Sep 01, 2005 11:16 AM by digpeople
Mar 28, 2005 08:35 AM|Peter Smith|LINK
I use a masterfile. The page account.aspx loads in contentplaceholder3. I have created a form in my account.aspx, but when I try to add a 'ASP:textbox' field to my contact.aspx , I get a: "'TEXTBOX' must be placed inside a form tag with runat=server" error.
When I do this, I get a: "A page can have only one server-side Form tag" error. So I don't know what to do now!
Mar 28, 2005 09:04 AM|NetProfit|LINK
What version of ASP.Net are you using?
Mar 28, 2005 09:19 AM|Peter Smith|LINK
Mar 28, 2005 02:44 PM|ChrisWallace|LINK
Mar 28, 2005 03:17 PM|Luis Abreu|LINK
Could you show us the code you're using?
Mar 28, 2005 06:41 PM|BrockAllen|LINK
Do you get this error from the designer? And are you setting the masterPageFile via web.config? If so, then this is a designer issue, not an ASP.NET issue. Your page should run just fine. This complaint from VS.NET occurs since VS.NET is not reading web.config
for the masterPageFile and then assumes you're not using a master page and then thinks you're missing the <html> tags. If this is actually your problem, then like I said, your page should actually execute alright and you can ignore the incorrect errors VS.NET
Mar 29, 2005 01:41 AM|Peter Smith|LINK
Apr 04, 2005 12:03 AM|rcurtis|LINK
This raises a good question about location. When building Master Pages is it best to leave the form tag on the Master Page on in the appropriate content section?
Apr 04, 2005 03:06 AM|Fredrik N|LINK
In the MasterPage. Because you can't have more than one server side form tag. If you have the form tag in the MasterPage, you don't need to add it to each content page.
Aug 01, 2005 04:56 PM|Armysniper|LINK
Sep 01, 2005 11:16 AM|digpeople|LINK