调试程序的时候出现了如下的错误:

   The Server tag is not well formed.

网上找了一下,发现有这么两种情况会出现这样的错误提示:

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

1.使用了重复的双引号(double quotes),比如:

<asp:Button id=but Text="Button" runat="server" CommandArgument="<%# DataBinder.eval_r(Container.DataItem, ("ColIndex")) %>"

这里红色引号部分改成单引号(single quotes),就可以了。

2.runat="server"的控件需要有ID.

相关文章:

  • 2021-05-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-10-14
  • 2021-11-15
  • 2021-05-24
  • 2021-08-26
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案