G
Guest
Hi All - I am an experienced ASP programmer but am a novice (that's being
generous) at ASP.NET. Anyhow, I am trying to learn it but am already running
into snags. I am trying to execute some simple sample code in a text file
called 'Test.aspx' but when I run the code it doesn't seem like the code is
getting processed by my IIS. I know my IIS is running because when I do
simple asp code like <%response.write "Test"%> the server processes that into
html.
Can someone offer any ideas? Below is the code I am trying to run. Only
the embedded html displays on the page and when I view source, the source
code is exactly the same as what's printed below.
<%@ Page Language="VB"%>
<script runat="server">
Sub tbMessage_Change(Sender As Object, E As EventArgs)
lblMessage.Text = "Hello " + tbMessage.Text
End Sub
</script>
<html><body>
<font size="5"> Sam's Teach Yourself ASP.NET in 21 Days:
Day2</font><hr><p>
<% Response.Write("Our First Page<p>") %>
<form runat="server">
Please enter your name:
<asp:textbox id="tbMessage"
OnTextChanged="tbMessage_Change"
runat=server/>
<asp:button id="btSubmit" Text="Submit"
runat=server/><p>
<asp:lable id="lblMessage" font-size="20pt"
runat=server/>
</form>
</body></html>
generous) at ASP.NET. Anyhow, I am trying to learn it but am already running
into snags. I am trying to execute some simple sample code in a text file
called 'Test.aspx' but when I run the code it doesn't seem like the code is
getting processed by my IIS. I know my IIS is running because when I do
simple asp code like <%response.write "Test"%> the server processes that into
html.
Can someone offer any ideas? Below is the code I am trying to run. Only
the embedded html displays on the page and when I view source, the source
code is exactly the same as what's printed below.
<%@ Page Language="VB"%>
<script runat="server">
Sub tbMessage_Change(Sender As Object, E As EventArgs)
lblMessage.Text = "Hello " + tbMessage.Text
End Sub
</script>
<html><body>
<font size="5"> Sam's Teach Yourself ASP.NET in 21 Days:
Day2</font><hr><p>
<% Response.Write("Our First Page<p>") %>
<form runat="server">
Please enter your name:
<asp:textbox id="tbMessage"
OnTextChanged="tbMessage_Change"
runat=server/>
<asp:button id="btSubmit" Text="Submit"
runat=server/><p>
<asp:lable id="lblMessage" font-size="20pt"
runat=server/>
</form>
</body></html>