"Character is not valid" error
I have the following code in my aspx page in VS2005 on .NET 2.0:
<div class="ProductSummaryText">
<div class="ProductSummaryProductName">
<a href="<%=Commerce.Common.Utility.GetRewriterUrl("p roduct",SKU,") %>" >
<%=ProductName%>
</a>
<br />
</div>
<div>
<span class="RetailPrice">
<%=RetailPrice.ToString("c")%>
</span > <span class="ourprice">
<%=GetDiscountedPrice().ToString("C")%>
</span>
</div>
<div class="usuallyships">
Usually ships in
<%=ShippingEstimate%>
</div>
<div class="smalltext">
Average Rating:
<Xpdt:Rater ID="sr1" runat="server" AutoLock="true" DisplayOnly="true"></Xpdt:Rater>
<br />
</div>
</div>
When I compile (and even before on the page itself), I get a "character is not valid" error on the line "<%=ProductName%>". I've tried rewriting it. I've tried renaming the file and renaming it back. I've tried eliminating that line, in which case the "character is not valid" error moves down to the next "<%=something%>" line.
Could this be indicative of an error somewhere else that's not showing up in the error list? I also have another page that's giving me a similar error on a closing "</td>" tag, and I can't figure out why that's happening either.
Please help!
Thanks,
Daniel
|