<%@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???