Subject: "Character is not valid" error
Posted By: danloregon Post Date: 9/26/2006 11:38:27 AM
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("product",SKU,") %>" >
                    <%=ProductName%>
                </a>
                <br />
            </div>
            <div>
                <span class="RetailPrice">
                    <%=RetailPrice.ToString("c")%>
                </span >&nbsp; <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



Go to topic 50258

Return to index page 164
Return to index page 163
Return to index page 162
Return to index page 161
Return to index page 160
Return to index page 159
Return to index page 158
Return to index page 157
Return to index page 156
Return to index page 155