Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2006, 11:38 AM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to danloregon Send a message via Yahoo to danloregon
Default "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 >&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







Similar Threads
Thread Thread Starter Forum Replies Last Post
Not a valid password. (Error 3031) ybg1 Access 3 April 18th, 2008 04:33 AM
Error: "Specified cast not valid" on ItemDataBoun snejsnej ASP.NET 1.0 and 1.1 Professional 0 May 24th, 2006 05:36 PM
Error: Object is no longer valid. Daniel Schaffer Classic ASP Databases 1 March 28th, 2004 11:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.