.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 28th, 2004, 08:52 AM
Nordlys Nordlys is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 Nordlys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old July 28th, 2004, 11:42 AM
Nordlys Nordlys is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 Nordlys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Solved it...

It seems that Visual Studio puts in in the <%@ %> tags

AutoEventWireup="false"

And that screws up the example. Why I dont know so if anyone can enlighten me I would be grateful.

Thanks

Andreas

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Beginner: Response.Write confusion


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT