Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 01, 2005 03:16 PM by digpeople
Mar 28, 2005 12:35 PM|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 01:04 PM|LINK
What version of ASP.Net are you using?
Mar 28, 2005 01:19 PM|LINK
Mar 28, 2005 06:44 PM|LINK
Mar 28, 2005 07:17 PM|LINK
Could you show us the code you're using?
Mar 28, 2005 10:41 PM|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 05:41 AM|LINK
Apr 04, 2005 04:03 AM|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 07:06 AM|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 08:56 PM|LINK