日期:2014-05-19  浏览次数:20450 次

.net2003自动加“amp;”,烦啊~
我原来打算在写成:
<A   href= '../difference/QuerySameNameDiffPortal.aspx?inq_year_1= <%=Request.QueryString[ "inq_year_1 "]%> &inq_month_1= <%=Request.QueryString[ "inq_month_1 "]%> &inq_date_1= <%=Request.QueryString[ "inq_date_1 "]%> &inq_year_2= <%=Request.QueryString[ "inq_year_2 "]%> &inq_month_2= <%=Request.QueryString[ "inq_month_2 "]%> &inq_date_2= <%=Request.QueryString[ "inq_date_2 "]%> &customcode= <%=Request.QueryString[ "customcode "]%> &type= <%=Request.QueryString[ "type "]%> '   >

不过只要在。NET的解决方案管理器里再次打开这个WEB   FORM就会自动在我的> &   改成> &amp;,

成这样了
<A   href= '../difference/QuerySameNameDiffPortal.aspx?inq_year_1= <%=Request.QueryString[ "inq_year_1 "]%> &amp;inq_month_1= <%=Request.QueryString[ "inq_month_1 "]%> &amp;inq_date_1= <%=Request.QueryString[ "inq_date_1 "]%> &amp;inq_year_2= <%=Request.QueryString[ "inq_year_2 "]%> &amp;inq_month_2= <%=Request.QueryString[ "inq_month_2 "]%> &amp;inq_date_2= <%=Request.QueryString[ "inq_date_2 "]%> &amp;customcode= <%=Request.QueryString[ "customcode "]%> &amp;type= <%=Request.QueryString[ "type "]%> '   >
这样我获得session的时候就会出现奇怪的字符,郁闷的,不想要微软大爷帮我改代码,我要自己写!哪位大哥告诉我怎么去掉这中自动修改代码,或者告诉我不这样写应该怎么写才不会出问题,谢谢了~

------解决方案--------------------
你可以把a转为服务器组件,然后在服务端写代码。
------解决方案--------------------
......

我最讨厌的是它自己加
<font > </font> 那一段,鼠标一点就自己加
------解决方案--------------------
加“amp;”也未必是坏事,比如说你传的参数里有 "& "这样的符号就会当作参数的一部分而不是参数分隔符,加“asp;”不映像链接效果