This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Front Page > April 2004 > non breaking spaces invading my .aspx file...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author non breaking spaces invading my .aspx file...
Travis

2004-04-27, 5:35 pm

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
Jim Buyens

2004-04-27, 5:35 pm

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


>-----Original Message-----
>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
>.
>

Travis Raybold

2004-04-28, 5:33 pm

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>

</form>
--------------

>-----Original Message-----
>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)
>|/---------------------------------------------------
>*----------------------------------------------------
>
>
>.
>

Jim Buyens

2004-04-29, 10:34 pm

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" <anonymous@discussions.microsoft.com> wrote in message news:<08ea01c42d4d$eb9bbb40$3a01280a@phx.gbl>...
> 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>

Yours: <td><asp:panel></td> ... </asp:panel>


> <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



The <font> tag on the next line has no matching </font> tag.

[color=darkred]
> <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>
>
> </form>
> --------------
>
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews