non breaking spaces invading my .aspx file...

T

Travis

ive just installed frontpage 2003, and everytime i edit a
..aspx file, it throws a bunch of non breaking spaces in
there at the beginning of many lines. after 20 edit/saves,
there will be 20 of them on many lines.

has anyone else seen this, and know of a workaround?
officeupdate said it had no updates for me... im about to
downgrade to frontpage 2000, it never messed with my code
as long as i never opened it in wysiwig mode!

thanks in advance,

--travis
 
J

Jim Buyens

I've never seen this behavior, and so I'm inclined to
think there's something unusual in your .aspx code.

Can you post a block of code that illustrates the problem?

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)
|/---------------------------------------------------
*----------------------------------------------------
 
T

Travis Raybold

yeah, i figured it must be a weird one because i didnt see
any other reports of it. here is a snippet of the page, i
checked with this snippet in its own file, and it added
more nbsps every time i saved.

---------------

<form runat="server">

<table border=0 width="100%">
<tr>
<td colspan=2 align="right"><font size=1>
<asp:HyperLink Text="Category Setup"
NavigateUrl="UserListSetup.aspx" Runat="server" /></font>
</td>
</tr>
<tr>
<td colspan=2 align="center" valign="top">
Click on the notepad icon (<img src="notepad.gif">) beside
any category name to add an action item for that category.
<asp:panel ID="pnlAddForm" Runat="server" Visible="False">
&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox Visible="False"
id="txtActionItemID" Text="0" runat="server" />
<table border=0><tr><td>

&nbsp;&nbsp;&nbsp;&nbsp;Urgent<td>Section</td><td>Date</td><td>School
<font size=-1>(Enter part of the school name, click on
Filter, and select the school in the list.)</td></tr>
<tr>
&nbsp;&nbsp;&nbsp;&nbsp;<td valign=top><asp:Checkbox
id="chkUrgent" runat="server" />
</td>
&nbsp;&nbsp;&nbsp;&nbsp;<td valign=top><asp:DropDownList
id="lstGroup" DataValueField="GroupID"
DataTextField="Group" Datasource="<%# GetGroups() %>"
runat="server" />
</td>
&nbsp;&nbsp;&nbsp;&nbsp;<td valign=top>
<asp:TextBox id="txtDate" runat="server" /><br>
&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td valign=top>
&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox id="txtLimitSchool"
runat="server" />
<asp:Button id="btnLimitMatchSchool"
OnClick="ChangeLimitMatchSchoolText" AutoPostBack="True"
Text="Filter" runat="server"/><br>
&nbsp;&nbsp;&nbsp;&nbsp;<asp:DropDownList
id="lstMatchSchool" runat="server"
DataValueField="SchoolID"
DataTextField="School"
DataSource="<%#
GetSchoolsByName(txtLimitSchool.Text) %>" />
</td>
&nbsp;&nbsp;&nbsp;&nbsp;</tr>
<tr><td colspan=4>
&nbsp;&nbsp;&nbsp;&nbsp;Notes: <asp:TextBox columns=60
maxlength=200 id="txtNotes" runat="server" /><br>
&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button id="lbAddActionItem"
Text="Add" runat="server" onClick="AddActionItem" />
</td>
&nbsp;&nbsp;&nbsp;&nbsp;</tr>
</table>
&nbsp;&nbsp;&nbsp;&nbsp;</asp:panel>
</td>
</tr>

</table>
 
J

Jim Buyens

The tags in your HTML contain several nesting errors. I've noted some of them below.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com


Travis Raybold said:
yeah, i figured it must be a weird one because i didnt see
any other reports of it. here is a snippet of the page, i
checked with this snippet in its own file, and it added
more nbsps every time i saved.

---------------

<form runat="server">

<table border=0 width="100%">
<tr>
<td colspan=2 align="right"><font size=1>
<asp:HyperLink Text="Category Setup"
NavigateUrl="UserListSetup.aspx" Runat="server" /></font>
</td>
</tr>
<tr>
<td colspan=2 align="center" valign="top">
Click on the notepad icon (<img src="notepad.gif">) beside
any category name to add an action item for that category.

Because you begin the following <asp:panel> tag within a <td> tag,
you must end it before the matching </td> tag.

Correct: <td><asp:panel> ... </asp:panel></td>
 
G

Guest

i've fixed these little inconsistencies, but unfortunately
the no breaking spaces keep multiplying... it reminds me of
the old start trek tribbles.

i had intentionally mis-nested some straight html table
tags around the repeater, to help out with some
programmatic stuff i do to the repeater (adding datagrids
to the repeater row). i could reprogram this to work in
other ways, but it works now, so ill probably just deal
with the invasion of spaces, or revert back to using
homesite for editing files.

thanks,

--travis

-----Original Message-----
The tags in your HTML contain several nesting errors. I've noted some of them below.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com


"Travis Raybold" <[email protected]>
wrote in message
 
J

Jim Buyens

You would do better by switching to Visual Studio .NET, which
is the only program that truly understands ASP.NET tags.

Prior to my last response:

o I pasted your HTML into Visual Studio.
o I then resolved a few error messages that Visual Studio displayed.
o I then copied the resulting HTML out of Visual Studio and pasted
it back into FrontPage 2003. This stopped production of the extra
&nbsp; sequences.

You don't have to buy a full Visual Studio packages to create ASP.NET
pages. Visual Basic .NET Standard works nicely and only costs about
$100.

In any event, though, if you're going to keep hand-coding pages,
I urge you to improve your coding habits. For example, whenever
you type a start tag, always type the matching end tag immediately.
Then, put whatever you want between those tags.

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)
|/---------------------------------------------------
*----------------------------------------------------
 
C

Cheryl Wise

You can also use the free Webmatrix program that can be downloaded at
http://asp.net I happen to like it better than Visual Studio.NET but who
knows which you might prefer.
 
Top