FP2002 Inserts form tag

L

Luke

I posted before about not being able to view .aspx pages
after saving them in FP, and since then I've found that
it's because when I click Save in FP, it inserts a /form
tag. How do I make FP stop inserting that /form tag?

*I went to Tools > Page Options > General and
unchecked "~Automatically insert form field tags" and HTML
Source and set it to "~Preserve HTML"

-Luke
(e-mail address removed)
 
D

David Berry

Do you mean you can't view them in your browser? ASP.NET files need a
</form> tag but it also need the <form> tag to include runat="server", ex:
<form runat="server">. All tags in ASP.NET need a closing tag so you can't
get rid of it.
 
J

Jim Buyens

-----Original Message-----
I posted before about not being able to view .aspx pages
after saving them in FP, and since then I've found that
it's because when I click Save in FP, it inserts a /form
tag. How do I make FP stop inserting that /form tag?

*I went to Tools > Page Options > General and
unchecked "~Automatically insert form field tags" and
HTML Source and set it to "~Preserve HTML"

This is unusual. I tried opening a new blank Web page and
saving it with an .aspx filename extensions, and no
<form> tag appeared.

What version of FrontPage are you running?

Does your page contain any runat="server" form fields?

Does it contain any other runat="server" tags?

Is this a Windows SharePoint Services Web, or a FrontPage
Server Extensions Web, or what? (If you're not sure,
choose Web Settings or Site Settings from the Tools menu,
click the General tab, and report the value following
Frontpage Server Extensions Version.)

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
L

Luke

FrontPage 2002, FP Server Ext 5
Yes, the aspx pages have a few runat="server" tags. Here's
some code:

<body id="BodyTag" runat="server" class="GeneralPage">
<form id="Form2" method="post" runat="server">
</form>

That last </form> tag is what get's inserted when I save.
I can delete it, click Save, and watch it appear before my
eyes. It shouldn't be there. If I go back with notepad and
take it out after saving, it works fine. I didn't write
the pages; they are part of StoreFront 6 software. I can
go to another computer with FP2002 and save fine. I've
un/reinstalled FP and .NET. It USED to not do this, until
something got changed, apparently. There was no upgrade or
major change that I know of that could have changed
settings.

-Luke
(e-mail address removed)
 
D

David Berry

If you have <form runat="server"> then you'll get a </form> tag and you
shouldn't delete it if you want the page to work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top