Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i AM getting newline in constant error in image url .what i am doing wrong
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='<%#"~/ImgHandler.ashx?QueNo="+Eval("QueNo")&SectionName="+Eval("SectionName") %>' style="border:1px solid gray;" />
Posted

1 solution

try with

ImageUrl ='<%# string.Format("~/ImgHandler.ashx?QueNo={0}&SectionName={1}",Eval("QueNo"), Eval("SectionName"))%>'
 
Share this answer
 

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