
July 28th, 2004, 08:52 AM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Beginner: Response.Write confusion
Gentlemen,
I am currently in the process of learning VB ASP.NET and I have encountered a confusing situation. I am using SAMS learn ASP.NET in 21 days 2nd edition.
The code I am trying to run,
Code:
<script runat="server">
dim myIntA as integer = 8, myIntB as integer = 7
Sub Page_Load(ByVal Sender as object, ByVal e as eventargs)
Response.Write(myIntA * myIntB)
End Sub
</script>
<html>
<head>
</head>
<body>
</body>
</html>
However this doesnt display anything. I have run this code at work on a 2003 server and it works fine, but on my laptop with XP Pro it doesnt run, both machines run IIS (6 an 5.1) with .NET 1.1 installed and registered properly.
If I add a
Code:
<%Response.Write(myIntA * myIntB)%>
inbetween the body tags it displays the result just fine.
Thanks for any help!!
Best Regards,
Andreas
|