Line 124: <!--
Line 125: <ul>
Line 126: <li><a href="<% =ResolveUrl("default.aspx”) %>" > <span>Home</span></a></li>
Line 127: <li><a href="<% =ResolveUrl(“showcategories.aspx”) %>"><span>Articles</span></a></li>
Line 128: <li><a href="<% =ResolveUrl(“ShowDepartments.aspx”) %>"><span>Store</span></a></li>
This question actually leads into a second one. I was getting this "Newline in constant" error when the "default.aspx" page is being view, not when its compiled. So I commented the above code and the code seems to still be executing "even though" I have
commented it out with the <!-- --> html comment elements. Can someone explain, 1)How I can fix this "newline in constant" runtime error and explain why this code is even being executed when its commented out? Thanks.
Edit: I re-typed the code in the IDE editor and it worked w/o hitch. Just one of those weird things I guess. So, no help needed here. The code is solid.
TheNutCracke...
Member
54 Points
237 Posts
The Beerhouse 3.5 - Compiler Error Message: CS1010: Newline in constant
Jun 12, 2010 03:58 AM|LINK
Line 124: <!-- Line 125: <ul> Line 126: <li><a href="<% =ResolveUrl("default.aspx”) %>" > <span>Home</span></a></li> Line 127: <li><a href="<% =ResolveUrl(“showcategories.aspx”) %>"><span>Articles</span></a></li> Line 128: <li><a href="<% =ResolveUrl(“ShowDepartments.aspx”) %>"><span>Store</span></a></li>This question actually leads into a second one. I was getting this "Newline in constant" error when the "default.aspx" page is being view, not when its compiled. So I commented the above code and the code seems to still be executing "even though" I have commented it out with the <!-- --> html comment elements. Can someone explain, 1)How I can fix this "newline in constant" runtime error and explain why this code is even being executed when its commented out? Thanks.
Edit: I re-typed the code in the IDE editor and it worked w/o hitch. Just one of those weird things I guess. So, no help needed here. The code is solid.