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 page error

Status
Not open for further replies.

Sachinkhare

Programmer
Jun 27, 2002
20
IN
Hi
I have uploaded ASP page on my site. I'm using IIS SERVER.
But there is some problem with my page. It is not shown on the screen. Not even HTML content in that. What may be the problem???
what all options i have to set additional.
Run SCript option in selected.

thanking you
Sachin
 
It would be more helpful if you could post your code
 
Hi there
this is the code which i'm doing





<%@ LANGUAGE= &quot;VBSCRIPT&quot;%>
<%
OPTION EXPLICIT
Dim cnnLOGIN
Dim rstLOGIN
dim strUsername, strPassword
dim strSQL
%>
<html background =&quot;gray&quot;>
<head>
<title>Login Page</title>
</head>

<%
if request.form(&quot;action&quot;) <> &quot;validate_login&quot; then

%>
<form name=&quot;LoginForm&quot; action=&quot;logincheck.asp&quot; method=&quot;post&quot;>
<input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;validate_login&quot;>
<table border=&quot;0&quot;>
<tr>
<td align=&quot;right&quot;>Login : </td>
<td><input type=&quot;text&quot; name=&quot;login&quot; size=&quot;20&quot;/>
</td>
</tr>
<tr>
<td align=&quot;right&quot;>Password : </td>
<td><input type=&quot;passowrd&quot; name=&quot;password&quot; size=&quot;20&quot;/>
</td>
</tr>
</table>
</form>
<%
else
strsql=&quot;select * from login_ksl WHERE login='&quot; & Request.Form(&quot;login&quot;) & &quot;' AND passwd='&quot; & Request.Form(&quot;password&quot;) & &quot;';&quot;
set cnnlogin=server.createobject(&quot;ADODB.Connection&quot;)
cnnlogin.open(&quot;DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=&quot; & Server.Mappath(&quot;login.mdb&quot;))
set rstlogin=Server.CreateObject(&quot;ADODB.recordset&quot;)
set rstlogin=cnnlogin.execute(strsql)

if not rstlogin.eof then
%>
<p>
<font color=&quot;blue&quot;><strong>Connection is working properly</strong></font>
</p>
<%
else
%>
<p>
<font size=&quot;4&quot; face=&quot;arial,helvetica&quot; color=&quot;Red&quot;><strong>Login Failed - Please verify username and password.</strong></font>
</p>
<p>
<a href=&quot;logincheck.asp&quot;>Try Again</a>
</p>
<%
end if

rstlogin.close
set rstlogin=nothing
cnnlogin.close
set cnnlogin=nothing

end if
end if
%>
</body>
</html>
 
I think that your code looks fine. However I did notice a few things I was not sure about. 1. There does not seem to be a way to submit your form if it takes that route. 2.You have ending tag / at the end of your input boxes? 3. Is a person preference however I like to use if recordeset.eof = true and recordset.bof = true then do something. Is this a page I could access to see exactly what it is or is not doing?
Roj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top