[thelist] [ASP] newbie resources

Luther, Ron Ron.Luther at hp.com
Fri Nov 15 09:18:01 CST 2002


Hi Benjer,


It's 'okay' to post beginner questions here ... everybody isn't
an expert on everything.  I know I've certainly posted 'easy'
questions often enough.  ;-)


However, I'm not sure an 'ASP' book is really what you want here.

The WROX book you have should cover the Request.QueryString object.
It should also cover loops and conditionals.  It should also cover
Response.Write.  Putting those together should cover the first two:

<%
Dim ImageFlip, HideMe

ImageFlip = Trim(Request.QueryString("user_variable"))
HideMe = Trim(Request.QueryString("another_variable"))

If (ImageFlip = "cow") Then
   Response.Write "<img src='pictures/cow.jpg' alt='Elsie!'>"
Else
   Response.Write "<img src='pictures/notcow.jpg' alt='Something'>"
End If

If (HideMe = "false") Then
   ResponseWrite "stuff"
End If
' When 'HideMe' is true we don't write anything out - that's as
' hidden as it gets!  If you want to interact with some JavaScript
' on your page and are just hiding some text initially then you'd
' Response.Write out the information with the appropriate "hidden"
' or z-index html syntax.  Okay?

%>

If the question is "But how do I learn to see how to put this junk
together like that?" then the answer might be more in a book _about_
programming than a reference book on any specific language.


Pulling the correct info from the database would be a reference
on SQL or one of the many web tutorials on SQL.  Rudy, (as usual),
has some nice links on his page here:
http://r937.com/links.cfm?links=sql


HTH,


RonL.
(You could also replace the single quotes above with appended
chr(34)s if you want to.)

-----Original Message-----
From: Ben Morrison [mailto:ben.morrison at dogstardesign.co.uk]

I'm looking for some good resources on learning ASP, i have the "Beginning
Active Server pages 3.0" book by WROX, but could do with some basic
examples.

I'll explain what i'm trying to do
1: swap images dependent on querystring result.
2: hide html content as above.
3: Pull correct info from database.



More information about the thelist mailing list