Frontpage Changing my ASP code

J

Jason @ MCD

Is there an option to trun off the FrontPage "Auto Reformat" for HTML code?
I have many people who use FrontPage to edit pages and everytime they Just
open it up it changes my code so I have to open it back up in Notepad to fix
it from teh server. Here is an example:

here is MY CODE:

<TD valign="bottom" style="background-image: url( <%= Session("ThemeDir")
%>Lower_Left.png );background-repeat: no-repeat;height:
3px;width:4px;font-size:6pt;background-position: bottom;"></TD>

here is what FrontPage changes it to:

<TD valign="bottom" style="background-image: url(url\(%20<%=\
Session\(\"ThemeDir\"\)\ %>Lower_Mid.png%20\));background-repeat:
repeat-x;height: 3px;font-size:6pt;background-position-y:50%"></TD>


You can note the change before the SESSION with the addition of a %20. This
is driving me absolutly mad.

Thanks in Advance
Jason
 
K

Kevin Spencer

In the Insert menu, you will find under "Advanced Controls" an item named
"HTML" which will prevent FrontPage from modifying the code you insert
inside it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
J

Jim Cheshire \(JIMCO\)

Jason said:
Is there an option to trun off the FrontPage "Auto Reformat" for HTML
code? I have many people who use FrontPage to edit pages and
everytime they Just open it up it changes my code so I have to open
it back up in Notepad to fix it from teh server. Here is an example:

here is MY CODE:

<TD valign="bottom" style="background-image: url( <%=
Session("ThemeDir") %>Lower_Left.png );background-repeat:
no-repeat;height: 3px;width:4px;font-size:6pt;background-position:
bottom;"></TD>

here is what FrontPage changes it to:

<TD valign="bottom" style="background-image: url(url\(%20<%=\
Session\(\"ThemeDir\"\)\ %>Lower_Mid.png%20\));background-repeat:
repeat-x;height: 3px;font-size:6pt;background-position-y:50%"></TD>

You sure about this? I've never seen FrontPage change the name of the image
file you are linking to.

--
Jim Cheshire
JIMCO
Charity-ware Add-ins for FrontPage
http://www.jimcoaddins.com

Pop-up generator Spawn 1.5 now available!
All pop-ups work with Windows XP SP2

Author of Special Edition Using Microsoft Office FrontPage 2003
 

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