简体   繁体   English

服务器标签格式错误

[英]Server tag is not well formed error

I've this issue with my asp.net c# coding. 我的asp.net c#编码存在此问题。 It says there is an error: " server tag is not well formed". 它说有一个错误:“服务器标签格式不正确”。 Below is my c# code. 下面是我的C#代码。

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

Problem is in the section ID='ImageButton6' . 问题出在ID='ImageButton6' Don't use mix of single and double quote. 不要混合使用单引号和双引号。 You should be using double quotes only. 您应该只使用双引号。 In case chosen then use only single quotes. 如果选择,则仅使用单引号。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM