Beginner's ASP.NET problem...

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top