Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 August 20th, 2003, 02:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default Beginner Problems(maybe server)

I am just starting to teach myself ASP.NET with web matrix. I can view the file I create with the web matrix server but everytime I try IIS I keep getting an error. Is there anything special I need to do to my server to get it to run aspx pages? Here is my code:
****************************************
<%@ Page Language="vb" %>
<script runat="server">

    ' Insert page code here '
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Label1.Text = "Hello, " & TextBox1.Text & "! Welcome to the ASP.NET Web Matrix Project"
    End Sub

</script>
<html>
<head>
</head>
<body>
    <form runat="server">
        <p>
            <asp:Label id="Label1" runat="server">Label</asp:Label>
        </p>
        <p>
            <asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
        </p>
        <p>
            <asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Button"></asp:Button>
        </p>

    </form>
</body>
</html>
********************************************

Here is my error message:

Line: 5
Char: 13
Error: Expected ';'
Code: 0


Any suggestions?
 
Old August 21st, 2003, 09:02 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I have no experience with web matrix, but this error looks like a client side javascript error.

 
Old August 21st, 2003, 01:30 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

hmmmm. the page worked just fine from my test server. my server can view asp.net pages but the computer I have vs.net 2002 on cannot. I have vs.net 2002 and the .net framework 1.1 on my machine. could that have anything to do with it?





Similar Threads
Thread Thread Starter Forum Replies Last Post
problems comunicating with paypal server ALEX_GRIM ASP.NET 1.0 and 1.1 Professional 8 June 1st, 2005 06:20 PM
Sql server access problems mbje ADO.NET 0 October 29th, 2004 03:18 AM
C++ Beginner having (the usual?) getline problems Slapworth C++ Programming 2 October 10th, 2004 01:45 PM
SQL Server Beginner Antony SQL Server ASP 4 April 29th, 2004 01:35 AM
Problems with Server.Transfer and Codebehind lichtbringer ASP.NET 1.0 and 1.1 Basics 0 June 18th, 2003 08:22 AM





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