服务器标记格式不正确

本文关键字:不正确 格式 服务器 | 更新日期: 2023-09-27 17:54:49

我的asp.net c#编码有这个问题。它说有一个错误:"服务器标签格式不正确"。下面是我的c#代码。

<asp:ImageButton ID='ImageButton6' runat="server" BackColor="White"
     ImageUrl="~/Images/fb.png" Height="40px" OnCommand="ImageButton6_Command"/>  

服务器标记格式不正确

问题在ID='ImageButton6'部分。不要混合使用单引号和双引号。你应该只使用双引号。