473,657 Members | 2,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP VBScript commands

3 New Member
hello ,
i would really appreciate it if anyone can help me with the meaning of this commands:


1. <form name ="form1" action = "add to database.asp" method

2. %@language= "VBscript"%
<% option explicit %>

3. set connection = server creat object <"ADODB.connect ion">
set.recordset

4. sconnstring="PR OVIDER=microsof t.set.OLEDB.40" & "data source = " & server.mappath <"user.mdb">

5. sconnstring = "PROVIDER = microsoft.set.O LEDB.40" & " data source =" & server .mappath <"user.mdb">
set.recordset = nothing.

6. execute the SQL
connection.exec ute<SQL>
Sep 16 '08 #1
1 3271
shweta123
692 Recognized Expert Contributor
Hi,

Following is the meaning of the commands you have asked :

1. <form name ="form1" action = "add to database.asp" method
Answer :
The form element creates a form for user input. A form can contain textfields, checkboxes, radio-buttons and more. Forms are used to pass user-data to a specified URL.

Attributes specified with form tag :
i> name : It specifies name of the form.
ii> action attribute: It specifies the URL that defines where to send the data when the submit button is pushed

2. %@language= "VBscript"%
<% option explicit %>
Answer:
@language attribute specifies the language you are using on ASP page.
option explicit specifies that the variables declaration is compulsory.

3. set connection = server creat object <"ADODB.connect ion">
Answer :
To create a database connection object on the server using the ADO Database connection object


4. sconnstring="PR OVIDER=microsof t.set.OLEDB.40" & "data source = " & server.mappath <"user.mdb">

Answer :Above connectionstrin g is used to open a connection to the database.

Following is the explanation for the connectionstrin g you have specified :
1> Provider : It specifies type of driver we are using for accessing the database.
2> Data Source :Path of your database file.
3> Server.MapPath: returns the physical path of file to the script.


5. execute the SQL
connection.exec ute<SQL>
Answer :
execute method is used for executing the sql statement for given database.
Sep 16 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
6819
by: John Davis | last post by:
When I create new documents in Dreamweaver, there are several choices for ASP creation: ASP JavaScript: run at client side?? ASP VBScript: run at server side?? ASP.NET C# ASP.NET VB I don't understand the differences between ASP JavaScript and ASP VBScript?? Because JavaScript is client-side technology, and ASP is server side technology. I think VBScript is used to implement ASP pages.
29
6010
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
2
4786
by: BARBARA FLOYD | last post by:
Hi, I create a popup web page using: newWin = window.open(.....) In the popup window I have href links. The popup takes a while to load and I don’t want the users to be able to click on a link until the popup information has finished loading Does anyone know what Visual Basic Script commands I can use to disable then enable the display in the popup window while the text and hyperlinks are loading (preferable I would still be able to...
16
9343
by: Mike Schinkel | last post by:
Does anyone know if there are bugs in VBScript's GetRef()? I'm using VBScript Version 5.6.8515 on Win2003Server w/ASP. Sometimes it returns an object that VarType() says is a vbObject. Other times it returns VarType() is vbEmpty. This is driving me mad! Also, does anyone know what the properties and methods are for the object returned by GetRef()? TIA.
0
5717
by: Mark Ritchey | last post by:
I don't know if I am sending this to the right place, but I have looked everywhere and have not found anything. My question is this. I am trying to Open a Excel Spreadsheet that contains macros and when I open the document with VBScript it halts because of the Prompt asking me if I want to enable Macros. So, I was wanting to know if there is a way that on the objExcel.Workbooks.Open Path what other arguments I can add and the syntax...
0
1022
by: hien_tran | last post by:
I am trying to convert the following VBScript command that decrypts a file into .NET. pgp ohw06027.elg.pgp -z778 The first parameter is pgp which is the PGP decryption software. The second parameter ohw06027.elg.pgp is the file to be decrypted. The third parameter -z778 is the password. I am a little bit familiar with the shell or
6
1950
by: rishabhshrivastava | last post by:
Hello All, I am using ASP.NET 2.0 and I am experiencing a problem using vbscript that is this script on client side is preventing the postback of my controls. I have a dropdownlist which is supposed to perform some fucntion when the selected index is changed, it works fine without vbscript code(when i comment out that code) but when I uncomment the code the postback dosen't happen.
2
1565
by: Andrew Poulos | last post by:
I write my ASP using javascript but I've been given a component that's been written in vbscript. The top of my js ASP page has <%@ language="javascript" %> <!-- #include file="aspupload.asp" --> and the top of the component has <%@ language="vbscript" %>
0
2015
by: lavsaxena | last post by:
I need to perform ssh operation in vbscript. I need to connect a unix machine through ssh from my windows machine and execute commands over there. Can any one help me in this? Thanks in Advance -- Lav
0
8399
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8312
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8606
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.