RE: ASP vs DHTML
by Francois de Beer <fbeer(at)sars.gov.za>
|
| Date: |
Thu, 5 Aug 1999 10:09:15 +0200 |
| To: |
"Villano, Paul" <VillanoP(at)usachcs-emh1.army.mil>, hwg-basics(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
HTML:
<P>Hekoo there</P>
ASP:
<%
Response.write "<P>Heloo There</P>"
%>
Both of these will put the Text "Heloo There" on the browser.
Both of these will be displayed as:
<P>Hekoo there</P>
when you do a "View Source" on your browser.
The differance is that in ASP on SERVER SIDE the command
"Response.write" tells the server to send whatever follows to the
client. (Not the command, only that which follows)
That is why we are able to process allot of stuff (Data accessing stuff
and retreival of data) on the server and then send only the results to
the client.
Like:
<html>
<head>
<title></title>
</head>
<body>
<%
Dim Conn
Dim RS
Set Conn = Server.CreateObject("Adodb.Connection")
Set Rs = Server.CreateObject("Adodb.Recordset")
Conn.ConnectionString = "Provider=SQLOLEDB.1;Password=pass;Persist
Security Info=True;User ID=usr;Initial Catalog=phone;Data
Source=Myserver;SERVER=MyServer;UID=usr;APP=Microsoft Development
Environment;WSID=ME;DATABASE=phone"
Conn.Open
Rs.Open "Select Field1,Field2 From Table", Conn, 0, 1, 1
Response.Write "<p> Here is the value of the first field in the database
:" & Rs.Fields(0) & "</p>"
Rs.close
Conn.close
%>
</body>
</html>
All that the user will see with a "view source" is (Asuming that the
value in the of the first field is 999):
<html>
<head>
<title></title>
</head>
<body>
<p> Here is the value of the first field in the database :999</p>
</body>
</html>
I hope this clears it up a bit.
Feel free to ask.
Cheerz Beer
-----Original Message-----
From: Villano, Paul [mailto:VillanoP(at)usachcs-emh1.army.mil]
Sent: 04 August 1999 09:52
To: hwg-basics(at)hwg.org
Subject: ASP vs DHTML
What's the difference between ASP and DHTML? When would you use one and
not the other? Which works best across browsers/platforms?
Paul
Serving the SOULdier
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.