Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : ASP : ASP 3.0 : can you plz help!! why this isn't workin'?? Signup · Login
Author Thread
can you plz help!! why this isn't workin'??
Posted in tutorial: Built in ASP objects - Active Server Pages Reference
·  navjot
User
Joined: 23 Jul 2007
Total Posts: 1
can you plz help!! why this isn't workin'??
Posted: 23 Jul 2007
<%@language = VBSCRIPT%>
<%OPTION EXPLICIT%>
<!-- INCLUDE file="databaseconnect.asp"-->
<!-- INCLUDE virtual="/adovbs.inc"-->

<%

dim objconn
dim strsql
set objConn=Server.CreateObject("ADODB.connection")

Dim ConnectionString

ConnectionString="Driver={Microsoft Access Driver(*.mdb)};"&"dbq=c:\inetpub\wwwroot\db1.mdb"

objconn.Open

'DIM OBJRS
'SET OBJRS=SERVER.CREATEOBJECT("ADODB.Recordset")
'objrs.open objconn
'objrs.addnew

DIM SNAME,SCLASS,SROLLNO
SNAME=REQUEST.FORM("NAME")
SCLASS=REQUEST.FORM("CLASS")
SROLLNO=REQUEST.FORM("ROLLNO")

strsql= "insert into TAB(NAME,CLASS,ROLLNO) Values('"&SNAME&"','"&SCLASS&"','"&SROLLNO&"')"

objconn.execute(strsql)

OBJCONN.CLOSE
SET OBJCONN=NOTHING

%>

when i submit the values for all the three fields (name class and rollno) via html form, it displays me a file download dialogbox ,
you are downloading the file regwrite.asp from c:\inetpub\wwwroot and asks me to open/save/cancel

what can be the reason???

Hello
I really need it!!!
plz help

·  naughtytoon123
User
Joined: 16 Aug 2007
Total Posts: 2
check your settings for iis
Posted: 16 Aug 2007
Check your IIS settings your IIS is not installed properly
·  Faisal Khan
AdminAdminAdminAdmin
Joined: 24 Sep 2002
Total Posts: 547
Re: can you plz help!! why this isn't workin'??
Posted: 25 Oct 2007
Above poster is spot on, you either don't have IIS installed or it is not installed properly.

Faisal Khan.
Stardeveloper.com

Users Who Have Visited This Thread In Last 24 Hours
4 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.