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 November 2nd, 2008, 03:44 AM
Registered User
 
Join Date: Nov 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Character is not valid

I'm new to using web matrix and I keep getting this error
Compiler Error Message: BC30037: Character is not valid.
when trying to run script. Here is what I get back

Line 2: <script runat="server">
Line 3:
Line 4: <% @Page language="VB" runat="server" %>
Line 5: <% @Import namespace="System.Data" %>
Line 6: <% @Import namespace="System.XML" %>
 Source File: C:\BegASPNET11\Ch02\datacontrolxml2.aspx Line: 4

Thanks




 
Old November 2nd, 2008, 06:08 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You need to place the directives (starting with an @ symbol) outside the <script> element:

<% @Page language="VB" runat="server" %>
<% @Import namespace="System.Data" %>
<% @Import namespace="System.XML" %>
<script runat="server">

</script>

Personally, I wouldn't invest time in learning ASP.NET 1.1 and Web Matrix. It's older technology, since long replaced with ASP.NET 2.0 and 3.5, using the (equally free) versions of Visual Web Developer Express Edition 2005 and 2008: http://www.microsoft.com/express/vwd/

If you're interested in learning more about ASP.NET 3.5 you may want to check out my book Beginning ASP.NET 3.5: http://www.wrox.com/WileyCDA/WroxTit...47018759X.html

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old November 2nd, 2008, 07:01 AM
Registered User
 
Join Date: Nov 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Got it to work, I just might have to take your advice. Thanks
Quote:
quote:Originally posted by Imar
 Hi there,

You need to place the directives (starting with an @ symbol) outside the <script> element:

<% @Page language="VB" runat="server" %>
<% @Import namespace="System.Data" %>
<% @Import namespace="System.XML" %>
<script runat="server">

</script>

Personally, I wouldn't invest time in learning ASP.NET 1.1 and Web Matrix. It's older technology, since long replaced with ASP.NET 2.0 and 3.5, using the (equally free) versions of Visual Web Developer Express Edition 2005 and 2008: http://www.microsoft.com/express/vwd/

If you're interested in learning more about ASP.NET 3.5 you may want to check out my book Beginning ASP.NET 3.5: http://www.wrox.com/WileyCDA/WroxTit...47018759X.html

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
character entity into numeric character entity srkumar XSLT 1 November 22nd, 2007 04:53 AM
valid crmpicco Classic ASP Basics 1 February 17th, 2005 12:54 AM
valid? crmpicco Classic ASP Basics 3 February 8th, 2005 05:46 AM





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