Click here to Skip to main content
15,307,359 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
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[^]
and more link try this understanding Bind and Eval [^]
You must escape backslash char in
<%# "images\" Eval("hinhminhhoa ") %>

Fixed code (note double backslash after image):
<%# "images\\" Eval("hinhminhhoa ") %>
Moralitos 19-Dec-13 11:43am
Did you tried it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900