I am reading Sams Teach Yourself ASP.NET in 21 days (yeah...right). BUT i JUST LOVE IT.
In this book there are several listings which demonstrate the reponse.write() method in asp.net. I cant seem to get ANY of them to work. Here is my example (taken largely from the book...but I used Visual Studio.net [again ...in newbie mode] for the IDE.
The Problem is it does NOT generate an error. just that NOTHING displays on the page!?! ...what gives?
PLEASE READ THE ANSWER DISCLAIMER B4 YOU RESPOND ;->
=======[ code ]===========
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="pageloadTest.a
sub page_load(sender as object, e as eventargs)
dim i as integer
response.write("this is an example")
response.write("<hr width='100%' \>")
'count to 5 and display text size change
for i = 1 to 5
response.write("<font size=" & i & ">Hi!<br></font>")
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5
=======[ / code ]=======
Please note: I am a rookie, the "greenest" of greenhorns. When I submit a question what I am looking for is a clear understanding of WHAT I AM DOING WRONG (the theory). Many have supplied code samples with no explanation. I have found that this only helps SOMETIMES. If I don't understand the error - I (in my "green"-ness) - will most likely commit the same error over and over again UNTIL I UNDERSTAND why I keep committing the same error.
That being said... CODE ONLY ANSWERS WILL GET NO POINTS FROM ME! Not to be nasty, but again I'm trying to learn. So please, simply ADD A SENTENCE OR TWO EXPLAINING WHAT I'M DOING WRONG to help clear the fog.
I don't belive in giving ANYTHING less than 500 points because I consider EVERY question "extremely important". Important to either a project (yeah right) or my continued journey out of the land of the Newbie. On the other hand You Guys and Gals
already know this stuff and make money doing it, yet you still find the time to answer questions to the benefit of us all. Thats definitely worth 500 point to me.
Thank you for your patience and undertsanding