PDA

View Full Version : Best book to learn ASP if you know VB


Johan
22-07-2003, 12:02/12:02PM
Whats the best book to read if you already know VB and code in such a way the ASP builds the HTML page rather than inserting ASP into a HTML page like so many exsamples in books and they confuse my little brain.

eg:

Response.Write "<html>" & vbCrLf & _
"<head>" & vbCrLf & _
"<title>" & strPageTitle & "</title>" & vbCrLf & _
"<link rel=""STYLESHEET"" href=""/moviesite/standard.css"">" & _
displayTop() & _
out & _
displayFooter() & _
"</body>" & _

etc.....


or like:

<%
Function DisplayTop()
Dim out

out = "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
out = out & " <tr>"
out = out & " <td><img src=""/images/moviesite2_01.gif"" width=""440"" height=""60""></td>"
out = out & " <td BACKGROUND=""/images/moviesite2_02.gif"" width=""100%""><img src=""/images/moviesite2_02.gif"" height=""60""></td>"
out = out & " <td>"

etc.....

:cheers:

richman
22-07-2003, 19:59/07:59PM
Greetings:

I used wrox beginning ASP to get started and thought it was fine for learning about the http request and response and as a general overview. You can get it used from Amazon for $15.

After that I recommend using the web for more specifics. http://www.4guysfromrolla.com is a pretty good one and there are a bunch of others.

As a general design paradigm I recommend that you try to keep your vb script and your "hard-coded" html as separate as possible. I use server-side includes for all of my vb script and then just make single function calls from the html.

Note that generating all (or almost all) of your html dynamically from vb script is pretty slow and does not scale to well for multiple users.

Webmaster T
22-07-2003, 20:14/08:14PM
I would agree with above, wrox have been the best I've found but for an all round reference, OReilly, ASP in a Nutshell ISBN 1-56592-490-8 is a good bet as well. It is like all the other In a Nutshell books, a good programming companion.

Johan
23-07-2003, 04:52/04:52AM
Thanks I will check those books out ASAP!

I could be wrong but... having lots of function calls from the html they are found to be slow check out http://www.plourdenet.com/writing/benchmarks1.htm

The reason is I have monster pages with 100 people on it at any one time and also I want to learn good habbits from the start.

other sources:
http://www.15seconds.com/issue/000106.htm
http://www.aspemporium.com/aspEmporium/tutorials/speedyASP.asp