Make Frontpage STOP changing my code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there an option to turn 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 the server. Even if I make the change in HTML view and try to save
it, it changes the code back right before my eyes! 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
 
Why not just remove the spaces from Url( [space]<%=[space]Sesssion , etc?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
It is easy to write ASP code that will not be modified by FP.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Thomas A. Rowe said:
Why not just remove the spaces from Url( [space]<%=[space]Sesssion , etc?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Jason @ MCD said:
Is there an option to turn 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 the server. Even if I make the change in HTML view and try to save
it, it changes the code back right before my eyes! 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
 
It is not that easy this is a pre-written application that has 100's of pages
and thousands of lines of code. If it were just one or two lines I would but
it is not.



Thomas A. Rowe said:
Why not just remove the spaces from Url( [space]<%=[space]Sesssion , etc?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Jason @ MCD said:
Is there an option to turn 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 the server. Even if I make the change in HTML view and try to save
it, it changes the code back right before my eyes! 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
 
In this case, I would search and replace to fix the code, as there is not setting in FP to stop
this.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Jason @ MCD said:
It is not that easy this is a pre-written application that has 100's of pages
and thousands of lines of code. If it were just one or two lines I would but
it is not.



Thomas A. Rowe said:
Why not just remove the spaces from Url( [space]<%=[space]Sesssion , etc?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Jason @ MCD said:
Is there an option to turn 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 the server. Even if I make the change in HTML view and try to save
it, it changes the code back right before my eyes! 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
 
this may be the wrong thing but under "Page options" click the "HTML Source" tab
and then click the radio button option "preserve existing html" - I know ASP is
not HTML as such - maybe the option should be "preserve all code not created by
Frontpage" or something similar, so whatever a developer codes themselves, is
preserved as they wrote it.
 
What version of FP are you seeing this option? I dont have that in FP 2003.
Microsoft should really consider making this optional. There are thousands
of people who choose not to use FP for their ASP editing becuase of this.
 
I have no problems using any version of FP to write/create and edit all my ASP Classic / VBScript
code. However, I do prefer to use FP2000 over the newer versions for all development, since FP2000
does everything that I need it to do.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

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

Similar Threads


Back
Top