473,399 Members | 3,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Beginner's ASP.NET problem...

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>

Nov 19 '05 #1
2 953
It sounds like you need to repair your IIS mappings.
Here's the instructions on how to do that:
http://support.microsoft.com/default...;EN-US;q306005

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"David Whitfield" <Da************@discussions.microsoft.com> wrote in
message news:E5**********************************@microsof t.com...
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>

Nov 19 '05 #2
That solved the problem. Thank you much.

"Steve C. Orr [MVP, MCSD]" wrote:
It sounds like you need to repair your IIS mappings.
Here's the instructions on how to do that:
http://support.microsoft.com/default...;EN-US;q306005

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"David Whitfield" <Da************@discussions.microsoft.com> wrote in
message news:E5**********************************@microsof t.com...
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>


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: jvax | last post by:
Hi all, I hope I'm posting in the right NG... I have a data text file I want to read from a c++ program. the data file goes like this: 90 # number of balls 33 42 13
5
by: Richard B. Kreckel | last post by:
Hi! I was recently asked what book to recommend for a beginner in C++. I am convinced that you needn't study C in depth before learning C++ (though it helps), but cannot find any beginner's...
18
by: mitchellpal | last post by:
Hi guys, am learning c as a beginner language and am finding it rough especially with pointers and data files. What do you think, am i being too pessimistic or thats how it happens for a beginner?...
20
by: weight gain 2000 | last post by:
Hello all! I'm looking for a very good book for an absolute beginner on VB.net or VB 2005 with emphasis on databases. What would you reccommend? Thanks!
10
by: See_Red_Run | last post by:
Hi, I am trying to figure out how to get started with PHP/MySQL. Everything I've read so far says to start with PHP first. I was expecting something like Visual Basic Express or some other type...
4
by: Bails | last post by:
Hi Im an absolute beginner in programming and am using VB.Net Express. To start my larning I decided to do a "Real World" app instead of "hello world" and am creating a Poker Countdown clock. ...
5
by: macca | last post by:
Hi, I'm looking for a good book on PHP design patterns for a OOP beginner - Reccommendations please? Thanks Paul
10
by: Roman Zeilinger | last post by:
Hi I have a beginner question concerning fscanf. First I had a text file which just contained some hex numbers: 0C100012 0C100012 ....
1
by: H. Fraser | last post by:
I've downloaded all of the code and video dealing with the RSS Reader but when i try to run it, it throws an exception, saying 404 page not found. And, As a total beginner, i've no idea where...
22
by: ddg_linux | last post by:
I have been reading about and doing a lot of php code examples from books but now I find myself wanting to do something practical with some of the skills that I have learned. I am a beginner php...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.