Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP dont work in my computer

Status
Not open for further replies.

janrachel

IS-IT--Management
May 29, 2001
4
BE
When i run my HTML Page and click on the picture i got <% = resultat%> instead of having all names in my database
It seems like ASP don't work (Should i add something else ?)

Thx for your help



My HTML Page
------------

<html>
<head><title>Index page ASP</title></head>
<body bgcolor=&quot;blue&quot;>
<object id=&quot;Monobj&quot; width=0 height=0 style=&quot;visibility:hidden&quot; type=&quot;text/x-scriptlet&quot; data=&quot;fichier.asp&quot;>
</object>
<center>
<img src=&quot;photo.jpg&quot; align=&quot;middle&quot; language=&quot;vbscript&quot; onclick=&quot;msgbox monobj.liste,vbexclamation,'eee'&quot;>
</center>
</body>
</html>


My ASP Page
-----------

<html>
<head><title>Pas ASP</title></head>
<body>

<%
on error resume next
dim rs
dim resultat
set rs = server.createobject(&quot;ADODB.Recordset&quot;)
rs.open &quot;personne&quot;,&quot;DSN=sflo&quot;,,,2
rs.movefirst
do while not rs.eof
resultat = resultat & rs.fields(&quot;nom&quot;) & &quot; &quot;
rs.movenext
loop
rs.close
set rs = nothing
%>
<script language=&quot;vbscript&quot;>
dim mResult
mResult = &quot;<% = resultat %>&quot;
function public_get_liste()
public_get_liste = mResult
end function
</script>
</body>
</html>
 
1) you need to be running the ASP page off IIS server running on NT4 or Higher
2) Or you can install Microsoft Personal WebServer, which lets you only work with the ASP locally

also Free sites like freeservers, geocities, tripods, xoom, etc do not support ASP, browsers do not support ASP, ASP is done on the serverside and is processed/encoded before sent to the client.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top