保存aspx文件会添加空白行和无数个& nbsp; [英] Saving aspx file adds blank lines and countless instances of  
问题描述
我刚开始在Windows 7 64bit上使用Expressions Web(2和3)。 当我打开我的aspx文件时,我在代码中看到了很多额外的内容,我注意到当我保存它时,EW会在代码中添加大量空行,通常就在文件的中间。 每次保存文件大小都会增长,增长和增长。 当我在记事本中打开文件时,我会看到:
--snip ----
< asiweb:PanelTemplateControl runat =" server" ID = QUOT; mainPanel中"可折叠= QUOT假QUOT;>
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < div style =" text-align:right;明确:两者;宽度:97%">
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < rm:youAreEdit id =" rmYouAreEdit" RUNAT = QUOT;服务器" />
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;< / DIV>
&NBSP; < table id =" tblLeftPane">
< tr id =" rowID" RUNAT = QUOT;服务器">
&NBSP;&NBSP;&NBSP;&NBSP; < td class =" PanelTablePrompt">
--- snip -
但是当我在EW打开它时,我看到了:
--- ---剪断
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < asiweb:PanelTemplateControl runat =" server" ID = QUOT; mainPanel中"可折叠= QUOT假QUOT;>
&NBSP;&NBSP;&NBSP;
&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP; < div style =" text-align:right;明确:两者;宽度:97%">
&NBSP;&NBSP;&NBSP;&NBSP;
&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP; < rm:youAreEdit id =" rmYouAreEdit" RUNAT = QUOT;服务器" />
&NBSP;&NBSP;&NBSP;&NBSP;
&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP; < / DIV>
&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP; < table id =" tblLeftPane"> & nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp; < tr id =" rowID" RUNAT = QUOT;服务器">
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
&NBSP;&NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP; &安培; NBSP;&安培; NBSP; < td class =" PanelTablePrompt">
--- snip ---
如果我保存它,它将开始在中间添加空白行&NBSP;我不记得在使用EW 2的Vista上发生过这种情况。 有什么想法发生了什么? 如果我无法解决这个问题,我将不得不回到DreamWeaver :(
这是EW的一个知道错误并且通常在页面上有第三方控件时会发生这种情况,看起来您使用的是< aisweb:和< rm:标签。
有关Connect的报道,我们一直希望修复。
与此同时,我建议使用VWD Express(免费下载)用于这些页面,EW用于其他没有第三方控制的用户。
Ian
MS MVP表达
I have just started using Expressions Web (2 and 3) on Windows 7 64bit. When I open and my aspx files, I see a lot of extra  's in the code and I notice that when I save it, EW will add numberous empty rows in the code, usually right in the middle of the file. The file size grows and grows and grows each time I save it. When I open a file in notepad, I see this:
--snip----
<asiweb:PanelTemplateControl runat="server" ID="MainPanel" Collapsible="false">
<div style="text-align:right; clear:both; width:97%">
<rm:youAreEdit id="rmYouAreEdit" runat="server" />
</div>
<table id="tblLeftPane">
<tr id="rowID" runat="server">
<td class="PanelTablePrompt">
--- snip --
but when I open it in EW, I see this:
---snip---
<asiweb:PanelTemplateControl runat="server" ID="MainPanel" Collapsible="false">
<div style="text-align:right; clear:both; width:97%">
<rm:youAreEdit id="rmYouAreEdit" runat="server" />
</div>
<table id="tblLeftPane">
<tr id="rowID" runat="server">
<td class="PanelTablePrompt">
---snip---
and if I save it, it will start adding blank lines right in the middle. I don't recall this happening on Vista with EW 2. Any ideas what is going on? If I can't figure this out, I will have to go back to DreamWeaver :(
This is a know bug with EW and typically happens when you have 3rd party controls on a page, which it looks like you have with the <aisweb: and <rm: tags.
It has been reported on Connect and we keep hoping for a fix.
In the meantime I'd suggest using VWD Express (a free download) for these pages and EW for others without the 3rd party controls.
Ian
MS MVP Expression
这篇关于保存aspx文件会添加空白行和无数个& nbsp;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!