常量错误换行符 [英] error newline in constant

查看:112
本文介绍了常量错误换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮帮我,修复此错误





< 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆