Click here to Skip to main content
15,914,111 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how can i solve newline in constant error in asp.net ?
Posted

use string.Format to format the content.

please show the code that you have written
 
Share this answer
 
Comments
sreedharmasula 8-Nov-11 2:32am    
<asp:Image ID="i1" runat="Server" ImageUrl='<%#" getImage.aspx?id=" + Eval("ProductID")" %>' /> this is my code
Remove last double quote from your code

C#
<asp:image id="i1" runat="Server" imageurl='<%# "getImage.aspx?id=" + Eval("ProductID") %>'/>
 
Share this answer
 
v2
Comments
Member 11762656 15-Jun-15 2:17am    
throw new InvalidOperationException("Random Word Characters cannot be
greater than 36")

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