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?