常量错误换行符 [英] error newline in constant
问题描述
请帮帮我,修复此错误
< asp:Image ID =Image1runat =server身高=59pxImageUrl ='<%#images \Eval(hinhminhhoa)%>'
Width =98px/> < asp:HyperLink ID =HyperLink1runat =serverNavigateUrl ='<%#chitietsach.aspx?ms =& Eval(Ms%>'
Text ='<%#Eval(Tensach)%>'>
错误2常量D中的换行符: \ book online \control\sachmoi.ascx 7
试试此链接,希望此链接有用 http:// stackoverflow。 com [ ^ ]
和更多链接试试这个 http: //stackoverflow.com了解Bind和Eval [ ^ ]
您必须在
中转义反斜杠字符< %# images \Eval( hinhminhhoa )%>
固定代码(注意图像后双反斜杠):
<%# images \\ Eval( hinhminhhoa )% > 跨度>
please help me , fix this error
<asp:Image ID="Image1" runat="server" Height="59px" ImageUrl='<%# "images\" Eval("hinhminhhoa ") %>'
Width="98px" /> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "chitietsach.aspx?ms=" & Eval("Ms %>'
Text='<%# Eval("Tensach") %>'>
Error 2 Newline in constant D:\book online\control\sachmoi.ascx 7
Try this link, I hope this link will helpfull http://stackoverflow.com[^]
and more link try this http://stackoverflow.com understanding Bind and Eval [^]
You must escape backslash char in <%# "images\" Eval("hinhminhhoa ") %> Fixed code (note double backslash after image): <%# "images\\" Eval("hinhminhhoa ") %>
这篇关于常量错误换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!