ASP.NET:The Server tag is not well formed 解决
调试程序的时候出现了如下的错误:
The Server tag is not well formed.
网上找了一下,发现有这么两种情况会出现这样的错误提示:
---------------------
1.使用了重复的双引号(double quotes),比如:
<asp:Button id=but
Text=Button runat=server CommandArgument=<%#
DataBinder.Eval(Container.DataItem, (ColIndex))
%>
这里红色引号部分改成单引号(single
quotes),就可以了。
2.runat=server的控件需要有ID.
----------------------
果然我犯的错误就是第一种情况,而且是一模一样的错误,呵呵。
===================博客订阅列表=================
===================最新文章列表=================
[toluu]St Louis™ - 生活、学习
[feedsky]St Louis™ - 生活、学习
[feedburner]St Louis™ - 生活、学习
VS2005未能加载文件或程序集Microsoft.Build.Engine
PageRequestManagerParserErrorException错误
GridView里面的HyperLink和ButtonField操作总结
又解决了几个问题:DropdownList和UpdatePanel
[ASP.NET]Response.Redirect转到页面并刷新
Firefox Download Day & Firefox Portable 3.0




