CONTENT S.No Topics Page no
|
|
- Warren Murphy
- 6 years ago
- Views:
Transcription
1 CONTENT S.No Topics Page no 1 ASP 2 2 The benefits of ASP 4 3 Basic syntax rule of ASP 5 4 Working with scripting language 5 AD-Rotator 12 6 Explain some HTML forms 15 7 Cookies 22 8 Using Cookies in ASP 25 9 Connection Object Application Object P a g e
2 UNIT 1 ASP Active server pages (ASP) is a server-side scripting environment that can be used to create and run dynamic, interactive, high performance web application. ASP Model: Browser HTTP request Web server HTTP response An Asp script begins to run when a browser request an.asp file from the web server. An.asp file: ASP is built around files with the file name extension.asp. The ASP file contains *Text *HTML Tags *Script commands. The applications of ASP: 1. Completely integrated into HTML files. 2. Easy to create, with no manual compiling or links of programs required. 3. Object oriented and extensible with Active X Sever components. Script: A Script is a series of Sentences one below the other in the form of a paragraph. 2 P a g e
3 Five built- in objects in ASP: 1. Application 2. Request 3. Response 4. Server 5. Session Application object: Store and retrieve information that can be shared among all users of an application. Methods: Lock,Unlock Events: ApplicationOnEnd, ApplicationOnStart. Scripting Languages: A Script is a series of Sentences one below the other in the form of a paragraph. Intermediate Stage between HTML and programming languages. Formatting and linking text. Less rigid and less complex. VBScript (primary languages of ASP) COM:component object Model Example: JScript,perl,Javascript. Multiple script languages can be used with a single.asp file. What is the ASP? ASP (Active Server Pages) is a technology developed by Microsoft. Pages using ASP are primarily developed in JavaScript, VBScript, or PerlScript and are integrated into the HTML of your Web pages. The ASP code is compiled by the 3 P a g e
4 server and the resulting output is standard HTML. By using ASP, Web pages can be dynamic, full of ever-changing content, and browser independent The benefits of ASP ASP runs as a service of the Web server, and is optimized for multiple threads and multiple users. You can create ASP pages using whatever language you want. ASPs can also take advantage of COM and DCOM objects with minimum effort. Server-side scripts cannot be readily copied because only the result of the script is returned to the browser; users cannot view the script commands that created the page they are viewing. 4 P a g e
5 The Basic syntax rule of ASP ASP contains the server scripts, which can contain any expressions, statements, procedures, operators valid for the scripting language. These server scripts are enclosed by the delimiters and 1. VBScript 2. JavaScript 3. Other Scripting Languages 1. Request Object 2. Response Object 3. Server Object 4. Session Object 5. Application Objects ASP S object model 1. Request Object When a browser asks for a page from a server, it is called a request. The Request object is used to get information from a visitor. Its collections, properties, and methods are described below: Collections Collection Client Certificate Cookies Description Contains all the field values stored in the client certificate Contains all the cookie values sent in a HTTP request 5 P a g e
6 Form Query String Server Variables Contains all the form (input) values from a form that uses the post method Contains all the variable values in a HTTP query string Contains all the server variable values Properties Property TotalBytes Description Returns the total number of bytes the client sent in the body of the request Methods Method Binary Read Description Retrieves the data sent to the server from the client as part of a post request and stores it in a safe array Response Object The ASP Response object is used to send output to the user from the server. Its collections, properties, and methods are described below: Collections Collection Cookies Description Sets a cookie value. If the cookie does not exist, it will be created, and take the value that is specified 6 P a g e
7 Properties Property Buffer CacheControl Charset ContentType Expires ExpiresAbsolute IsClientConnected Pics Status Description Specifies whether to buffer the page output or not Sets whether a proxy server can cache the output generated by ASP or not Appends the name of a character-set to the content-type header in the Response object Sets the HTTP content type for the Response object Sets how long (in minutes) a page will be cached on a browser before it expires Sets a date and time when a page cached on a browser will expire Indicates if the client has disconnected from the server Appends a value to the PICS label response header Specifies the value of the status line returned by the server Methods Method AddHeader AppendToLog BinaryWrite Clear Description Adds a new HTTP header and a value to the HTTP response Adds a string to the end of the server log entry Writes data directly to the output without any character conversion Clears any buffered HTML output 7 P a g e
8 End Flush Redirect Write Stops processing a script, and returns the current result Sends buffered HTML output immediately Redirects the user to a different URL Writes a specified string to the output SESSION OBJECT: Collections Collection Contents Static Objects Description Contains all the items appended to the session through a script command Contains all the objects appended to the session with the HTML <object> tag Properties Property CodePage LCID SessionID Timeout Description Specifies the character set that will be used when displaying dynamic content Sets or returns an integer that specifies a location or region. Contents like date, time, and currency will be displayed according to that location or region Returns a unique id for each user. The unique id is generated by the server Sets or returns the timeout period (in minutes) for the Session object in this application 8 P a g e
9 Methods Method Abandon Contents. Remove Contents.RemoveAll() Description Destroys a user session Deletes an item from the Contents collection Deletes all items from the Contents collection Events Event Session_OnEnd Session_OnStart Description Occurs when a session ends Occurs when a session starts Server Object The ASP Server object is used to access properties and methods on the server. Its properties and methods are described below: Properties Property Script Timeout Description Sets or returns the maximum number of seconds a script can run before it is terminated Methods Method CreateObject Execute Description Creates an instance of an object Executes an ASP file from inside another ASP file 9 P a g e
10 GetLastError() HTMLEncode MapPath Transfer URLEncode Returns an ASPError object that describes the error condition that occurred Applies HTML encoding to a specified string Maps a specified path to a physical path Sends (transfers) all the information created in one ASP file to a second ASP file Applies URL encoding rules to a specified string Working with Scripting Languages Active Server Pages makes it possible for Web developers to write scripts that execute on the server in variety of scripting languages. In fact, several scripting languages can be used within a single.asp file. In addition, because scripts are read and processed on the server-side, the browser that requests the.asp file does not need to support scripting. You can use any scripting language for which the appropriate scripting engine is installed on your Web server. A scripting engine is a program that processes commands written in a particular language. Active Server Pages comes with two scripting engines: Microsoft Visual Basic Scripting Edition (VBScript) and Microsoft JScript. You can install and use engines for other scripting languages, such as REXX, PERL, and Python. Active Server Pages is a COM scripting host; to use a language you must install a scripting engine that follows the COM Scripting standard and resides as a COM (Component Object Model) object on the Web server. Setting the Primary Scripting Language 10 P a g e
11 The ASP primary scripting language is the language used to process commands inside the and delimiters. By default, the primary scripting language is VBScript. You can use any scripting language for which you have a script engine as the primary scripting language. You can set the primary scripting language on a page-by-page basis, or for all pages in an ASP application. Setting the Language for an Application To set the primary scripting language for all pages in an application, set the Default ASP Language property on the App Options tab in the Internet Information Services snap-in. Setting the Language for a Page To set the primary scripting language for a single page, add directive to the beginning of your.asp file. The syntax for using this directive LANGUAGE = "Scripting Language" where Scripting Language is the primary scripting language (such as VBScript, JScript, or PerlScript) that you want to set for that particular page. The setting for a page overrides the global setting for all pages in the application. 11 P a g e
12 UNIT-II EXPLAIN ABOUT AD-ROTATOR COMPONANT The Ad-rotator component is used to display a banner,advertisement on the web page of the web-site.this component can be used to specify how frequently different banner advertisement should be displayed. WHAT ARE ALL THE KEYWORD UAED IN FIRST SECTION OF THE ROTATOR SCHEDULE FILE? The keyword can be used in first section of rotator schedule file are: *REDIRECT-URL of file that implement redirection. WIDTH-Width of advertisement in pixels HEIGHT Height of advertisements in pixels. BORDER-Size of border WHAT DOES THE SECOND SECTION OF ROTATOR SCHEDULE FILE CONTAINS: The second section of rotator schedule file contains information about each image to be rotated.each image requires four lines of informations are: *the first line contain URLof advertisement image. *the second line contain URL of web page to which the graphic is linked. *the third line contain a text description of graphic. *the last line contains a number of times images to be displayed. EXPLAIN ABOUT BROWSER CAPABILITES COMPONENT; The browser capabilities component is very useful for developing crossbrowser web applications.when developing web applications,one cannot assume 12 P a g e
13 user employ the latest version of internet explorer. use the browser capabilities to determine which browser is employed by visitors and what browser support. DISCUSS SOME INFORMATON CAN OBTAINED USING BROWSER CAPABILITIES COMPONENT: *browser-name of web browser Version-version of the web browser. *majover-major version number. *platform-operating system being used. EXPLAIN ABOUT INPUTBOX FUNCTION; The inputbox function is displayed by a client-side VBscript subroutine.the inputbox function obtains input from a user by presenting a dialog box with data entry field.the syntax of inputbox command is Inputbox (<prompt>,<title>,<x>,<y>) *<prompt>-is the dialog box prompt. *<title>-is the title of dialog box. *<default>-is the default input value. <x>-is the horizontal position. *<y>-is the vertical position. EXPLAIN ABOUT MSGBOX FUNCTION: command is The msgbox function displays a message box.the syntax of msgbox Msgbox<msgbox prompt>-is the prompt of message box. 13 P a g e
14 *<buttonstyle>-is a number value *<title>-is the title of message box. DEFINE SOME MESSAGE BOX CODES FOR BUTTONS AND ICON; BUTTON ID NUMBER. 0 Ok 1 Ok and cancel 2 Abort,retry and ignore BUTTON ID NUMBER BUTTONS DISPLAYED 3 Yes no and cancel 14 P a g e
15 EXPLAIN SOME HTML FORMS; All web browser support html forms, so an asp application can use an html forms to communicate with virtually anyone browsing a website.asp application can easily access the values of an html form variable using request.query string method. Ex;Request.querysyring( name )-returns the value of name variable. EXPLAIN ABOUT RADIO BUTTONS WITH EXAMPLE: Radio button are useful when a user must be forced to make a choice from among a small number of choice in an html for Ex;<b>please enter you color :</b> <input name = color type= radio >red. <input name= color =type= radio >blue. <input type= submit value= submit > FIVEMARKS EXPLAIN THE ADVERTISEMENT ROTATOR COMPONENT; The advertisement rotator component is ideal for displaying a series of graphic images a text file containing information about images to be rotated and consist of two section separated by asterisk *the first section contains information about each image to be rotated 15 P a g e
16 Ex; 1.BORDER 4 2.* 3./IMAGES/WIMLOGO.gif EXPLAIN MSGBOX FUNCTION: The message box function display message box the syntax of masgbox command is: Msg box <msgbox prompt,<buttonstyle>,<title> Massage box s icon id number and some icon type. Are: 16-Critical Massage Box icon 32-warning query icon. Massage box s codes for some Button disply Are: 0-ok 1-ok 4-yes and no 6-retry and cancal ASP AdRotator Component The ASP AdRotator component creates an AdRotator object that displays a different image each time a user enters or refreshes a page. A text file includes information about the images. Note: The AdRotator does not work with Internet Information Server 7 (IIS7). Syntax 16 P a g e
17 set adrotator=server.createobject("mswc.adrotator") adrotator.getadvertisement("textfile.txt") ASP AdRotator Example Assume that we have the following text file, named "ads.txt": REDIRECT banners.asp * w3s.gif Free Tutorials from W3Schools 50 xmlspy.gif XML Editor from Altova 50 The lines below the asterisk in the text file above specifies the name of the images (ads) to be displayed, the hyperlink addresses, the alternate text (for the images), and the display rates (in percent). The first line in the text file above specifies what to happen when a visitor clicks on one of the images. The redirection page (banners.asp) will receive a querystring with the URL to redirect to. Tip: To specify the height, width, and border of the image, you can insert the following lines under REDIRECT: REDIRECT banners.asp WIDTH 468 HEIGHT 60 BORDER 0 * w3s.gif The "banners.asp" file looks like this: 17 P a g e
18 Example url=request.querystring("url") If url<>"" then Response.Redirect(url) <!DOCTYPE html> <html> <body> set adrotator=server.createobject("mswc.adrotator") response.write(adrotator.getadvertisement("textfile.txt")) </body> </html> ASP AdRotator Properties Property Description Example Border Specifies the size of the borders around the advertisement set adrot=server.createobject("mswc.adrotator") adrot.border="2" Response.Write(adrot.GetAdvertisement("ads.txt")) Clickable Specifies set whether the adrot=server.createobject("mswc.adrotator") advertisement is adrot.clickable=false a hyperlink Response.Write(adrot.GetAdvertisement("ads.txt")) TargetFrame Name of the 18 P a g e
19 frame to display the advertisement set adrot=server.createobject("mswc.adrotator") adrot.targetframe="target='_blank'" Response.Write(adrot.GetAdvertisement("ads.txt")) ASP Forms and User Input The Request.QueryString and Request.Form commands are used to retrieve user input from forms. Examples A form with method="get" How to interact with the user, with the Request.QueryString command. A form with method="post" How to interact with the user, with the Request.Form command. A form with radio buttons How to interact with the user, through radio buttons, with the Request.Form command. User Input The Request object can be used to retrieve user information from forms. User input can be retrieved with the Request.QueryString or Request.Form command. Request.QueryString The Request.QueryString command is used to collect values in a form with method="get". 19 P a g e
20 Information sent from a form with the GET method is visible to everyone (it will be displayed in the browser's address bar) and has limits on the amount of information to send. Example HTML form <form method="get" action="simpleform.asp"> First Name: <input type="text" name="fname"><br> Last Name: <input type="text" name="lname"><br><br> <input type="submit" value="submit"> </form> If a user typed "Bill" and "Gates" in the HTML form above, the URL sent to the server would look like this: Assume that "simpleform.asp" contains the following ASP script: <body> Welcome response.write(request.querystring("fname")) response.write(" " & request.querystring("lname")) </body> The browser will display the following in the body of the document: Welcome Bill Gates Request.Form The Request.Form command is used to collect values in a form with method="post". Information sent from a form with the POST method is invisible to others and has no limits on the amount of information to send. Example HTML form 20 P a g e
21 <form method="post" action="simpleform.asp"> First Name: <input type="text" name="fname"><br> Last Name: <input type="text" name="lname"><br><br> <input type="submit" value="submit"> </form> If a user typed "Bill" and "Gates" in the HTML form above, the URL sent to the server would look like this: Assume that "simpleform.asp" contains the following ASP script: <body> Welcome response.write(request.form("fname")) response.write(" " & request.form("lname")) </body> The browser will display the following in the body of the document: Welcome Bill Gates Form Validation User input should be validated on the browser whenever possible (by client scripts). Browser validation is faster and reduces the server load. You should consider server validation if the user input will be inserted into a database. A good way to validate a form on the server is to post the form to itself, instead of jumping to a different page. The user will then get the error messages on the same page as the form. This makes it easier to discover the error 21 P a g e
22 UNIT-III Purpose of Cookies: To identify viewers. To identify a PC that is sending a request. Application of Cookies: Cart expiration Personal Information User s name, geographic location, time zone and account number. Personal Preference-Preferred background color/bitmap, background music. Information about an Online Transaction-Items in shopping cart, time spent shopping, shopping time/date. Drawbacks of Using Cookies: Cookies can be lost. Cookies can be changed by users. Cookies can be copied. Cookies can be stolen. Creating Cookies: The Response Object is used to create a cookie and set its attributes. Cookies are created using the following syntax, Response.Cookies(NameOfCookie)=ValueOfCookie Eg: Response.Cookies( TimeZone )= Eastern. Setting Attributes of Cookies: Cookies can contain various attributes. Such as when the cookie expires and to which domain the cookie is sent Syntax: Response.Cookies(NameOfCookie).Cookie Attribute=Value of Cookie Attribute. ActiveX Data Objects: 22 P a g e
23 The ActiveX Data Objects provide an application level interface to data providers such as Microsoft SQL Server or Microsoft Access. ADO is directly used within Active Server Pages to communicate with such databases. Open Database Connectivity Interface: Open Database Connectivity Interface was used as the standard for communicating with databases. Microsoft has OLEDB providers for such databases as Microsoft SQL Server, Oracle and Microsoft Jet. Connection Object: The Connection Object represents all the features of a connection to the data source. Data Sources such as normal Text File, Microsoft Excel, Microsoft Exchange. Record set Object: A Record set object represents the rows of data returned from the data sources. Eg: A select query is fired on a database, the rows of data returned. Command Object: The Command Object represents a command that can be executed against a data source. Typically, the command object is used to execute a SQL stored procedure. DRAWBACKS OF COOKIES: Cookies can be lost: Cookies File can be corrupted, deleted or over written. Cookies can be changed by users: Cookies can be used to store non-confidential Information. 23 P a g e
24 Cookies can be copied: Cookies to store information that is unique to the user s computer. Cookies can be stolen: Cookies information can be copied. ADDRESSING THE DRAWBACKS OF COOKIES: Large Cookie Approach: It stores all of the information in the cookies itself. Minimalist Approach: It stores only an identify in the cookie. Middle Approach: Most commonly and urgently needed information held in the cookie. CONNECTING TO SQL SERVER WITH OLEDB: A connection to SQL server is opened with a connection string that contains Five Parameters: The OLEDB provider. The Datasource. The Database. The user Id. The Password. 24 P a g e
25 USING COOKIES IN ASP APPLICATIONS Creating Cookies: The Response Object is used to create a cookie. Syntax: Response.Cookies(NameOfCookie)=ValueOfCookie. Setting Attributes of Cookies: Cookies can contain various attributes such as when the cookie expires and to which domain the cookie is sent. Syntax: Response.Cookies(NameOfCookie).Cookie Attribute=ValueOfCookie Attribute. Storing Multiple Values in a cookie: Multiple values can be stored in a cookie by using keys. Syntax: Response.Cookies( NameOfCookie )( NameOfKey )=( ValueOfKey ) Retrieving a Single Value from a Cookie: Syntax: myvar=request.cookies(nameofcookie) Retrieving Multiple Values from Cookie Keys: Syntax:myvar=Request.Cookies( NameOfCookie )( Name of sub key ) Testing if a cookie has key values or not: Syntax: myvar=request.cookies( NameOfCookie ).Haskeys 25 P a g e
26 CONNECTING TO A MICROSOFT ACCESS DATABASE Creating a Microsoft Access Connection Using OLEDB: The preferred method for creating a connection to an access database is by using a native OLE DB provider. Creatin a MicroSoft Access Connection Using the ODBC: There are three choices. They are, store the information in Windows Registry, file, connection string itself. Creating a System DSN for MicroSoft Access: To store the connection information in the window registry, a system DSN must to be created. What is the ASP? ASP (Active Server Pages) is a technology developed by Microsoft. Pages using ASP are primarily developed in JavaScript, VBScript, or PerlScript and are integrated into the HTML of your Web pages. The ASP code is compiled by the server and the resulting output is standard HTML. By using ASP, Web pages can be dynamic, full of ever-changing content, and browser independent What is a Cookie? A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With ASP, you can both create and retrieve cookie values. 26 P a g e
27 How to Create a Cookie? The "Response.Cookies" command is used to create cookies. Note: The Response.Cookies command must appear BEFORE the <html> tag. In the example below, we will create a cookie named "firstname" and assign the value "Alex" to it: Response.Cookies("firstname")="Alex" It is also possible to assign properties to a cookie, like setting a date when the cookie should expire: Response.Cookies("firstname")="Alex" Response.Cookies("firstname").Expires=#May 10,2012# How to Retrieve a Cookie Value? The "Request.Cookies" command is used to retrieve a cookie value. In the example below, we retrieve the value of the cookie named "firstname" and display it on a page: fname=request.cookies("firstname") 27 P a g e
28 response.write("firstname=" & fname) Output: Firstname=Alex A Cookie with Keys If a cookie contains a collection of multiple values, we say that the cookie has Keys. In the example below, we will create a cookie collection named "user". The "user" cookie has Keys that contains information about a user: Response.Cookies("user")("firstname")="John" Response.Cookies("user")("lastname")="Smith" Response.Cookies("user")("country")="Norway" Response.Cookies("user")("age")="25" Read all Cookies Look at the following code: Response.Cookies("firstname")="Alex" Response.Cookies("user")("firstname")="John" Response.Cookies("user")("lastname")="Smith" Response.Cookies("user")("country")="Norway" 28 P a g e
29 Response.Cookies("user")("age")="25" Assume that your server has sent all the cookies above to a user. Now we want to read all the cookies sent to a user. The example below shows how to do it (note that the code below checks if a cookie has Keys with the HasKeys property): <!DOCTYPE html> <html> <body> dim x,y for each x in Request.Cookies response.write("<p>") if Request.Cookies(x).HasKeys then for each y in Request.Cookies(x) response.write(x & ":" & y & "=" & Request.Cookies(x)(y)) response.write("<br>") next else Response.Write(x & "=" & Request.Cookies(x) & "<br>") end if response.write "</p>" next 29 P a g e
30 </body> </html> Output: firstname=alex user:firstname=john user:lastname=smith user:country=norway user:age=25 COOKIES EXAMPLE: dim numvisits response.cookies("numvisits").expires=date+365 numvisits=request.cookies("numvisits") if numvisits="" then response.cookies("numvisits")=1 response.write("welcome! This is the first time you are visiting this Web page.") else response.cookies("numvisits")=numvisits+1 response.write("you have visited this ") response.write("web page " & numvisits) if numvisits=1 then 30 P a g e
31 response.write " time before!" else response.write " times before!" end if end if <!DOCTYPE html> <html> <body> </body> </html> OUTPUT Welcome! This is the first time you are visiting this Web page. 2. Use a form You can use a form. The form passes the user input to "welcome.asp" when the user clicks on the Submit button: <form method="post" action="welcome.asp"> First Name: <input type="text" name="fname" value=""> Last Name: <input type="text" name="lname" value=""> <input type="submit" value="submit"> </form> 31 P a g e
32 Retrieve the values in the "welcome.asp" file like this: fname=request.form("fname") lname=request.form("lname") response.write("<p>hello " & fname & " " & lname & "!</p>") response.write("<p>welcome to my Web site!</p>") What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a Microsoft Active-X component ADO is automatically installed with Microsoft IIS ADO is a programming interface to access data in a database Accessing a Database from an ASP Page The common way to access a database from inside an ASP page is to: 1. Create an ADO connection to a database 2. Open the database connection 3. Create an ADO recordset 4. Open the recordset 5. Extract the data you need from the recordset 6. Close the recordset 7. Close the connection 32 P a g e
33 Create an ODBC Database Connection If you have an ODBC database called "northwind" you can connect to the database with the following ASP code: set conn=server.createobject("adodb.connection") conn.open "northwind" With an ODBC connection, you can connect to any database, on any computer in your network, as long as an ODBC connection is available. An ODBC Connection to an MS Access Database Here is how to create a connection to a MS Access Database: 1. Open the ODBC icon in your Control Panel. 2. Choose the System DSN tab. 3. Click on Add in the System DSN tab. 4. Select the Microsoft Access Driver. Click Finish. 5. In the next screen, click Select to locate the database. 6. Give the database a Data Source Name (DSN). 7. Click OK. Note that this configuration has to be done on the computer where your web site is located. If you are running Personal Web Server (PWS) or Internet Information Server (IIS) on your own computer, the instructions above will work, but if your web site is located on a remote server, you have to have physical access to that server, or ask your web host to do this for you. 33 P a g e
34 The ADO Connection Object The ADO Connection object is used to create an open connection to a data source. Through this connection, you can access and manipulate a database. Create an ADO Table Recordset After an ADO Database Connection has been created, as demonstrated in the previous chapter, it is possible to create an ADO Recordset. Suppose we have a database named "Northwind", we can get access to the "Customers" table inside the database with the following lines: set conn=server.createobject("adodb.connection") conn.provider="microsoft.jet.oledb.4.0" conn.open "c:/webdata/northwind.mdb" set rs=server.createobject("adodb.recordset") rs.open "Customers", conn Create an ADO SQL Recordset We can also get access to the data in the "Customers" table using SQL: set conn=server.createobject("adodb.connection") conn.provider="microsoft.jet.oledb.4.0" conn.open "c:/webdata/northwind.mdb" 34 P a g e
35 set rs=server.createobject("adodb.recordset") rs.open "Select * from Customers", conn Extract Data from the Recordset After a recordset is opened, we can extract data from recordset. Suppose we have a database named "Northwind", we can get access to the "Customers" table inside the database with the following lines: set conn=server.createobject("adodb.connection") conn.provider="microsoft.jet.oledb.4.0" conn.open "c:/webdata/northwind.mdb" set rs=server.createobject("adodb.recordset") rs.open "Select * from Customers", conn for each x in rs.fields response.write(x.name) response.write(" = ") response.write(x.value) next 35 P a g e
36 Connect to MS SQL Server database from ASP This article shows how to connect to MySQL database from Classic ASP. You can connect to your MS SQL Server database OLEDB provider or SQL Server driver. The first example show how to connect to MS SQL db from ASP with the OLDEB provider: 1. ASP to MS SQL Server database connection with OLE DB: Set oconnection = Server.CreateObject("ADODB.Connection") oconnection.open "Provider=SQLOLEDB; Data Source=; Initial Catalog=; User ID=; Password=" oconnection.close Set oconnection = Nothing The example above just opens a connection from ASP to a SQL Server database and then closes it immediately. Most likely you will want to do more than just connecting to the db, but this is out of the scope of this article. 2. ASP to MS SQL Server database connection with SQL Driver: Set oconnection = Server.CreateObject("ADODB.Connection") oconnection.open "Driver={SQL Server};" & _ "Server=;" & _ "Database=;" & _ 36 P a g e
37 "Uid=;" & _ "Pwd=;" oconnection.close Connect with a DSN: DSN stands for 'Data Source Name'. It is an easy way to assign useful and easily rememberable names to data sources which may not be limited to databases alone. If you do not know how to set up a system DSN read our tutorial 'declare the variables Dim Connection Dim Recordset Dim SQL 'declare the SQL statement that will query the database SQL = "SELECT * FROM TABLE_NAME" 'create an instance of the ADO connection and recordset objects Set Connection = Server.CreateObject("ADODB.Connection") Set Recordset = Server.CreateObject("ADODB.Recordset") 'open the connection to the database Connection.Open "DSN=dsn_name;UID=user_name;PWD=password;Database=database_name" 37 P a g e
38 'Open the recordset object executing the SQL statement and return records Recordset.Open SQL,Connection 'first of all determine whether there are any records If Recordset.EOF Then Response.Write("No records returned.") Else 'if there are records then loop through the fields Do While NOT Recordset.Eof Response.write Recordset("FIRST_FIELD_NAME") Response.write Recordset("SECOND_FIELD_NAME") Response.write Recordset("THIRD_FIELD_NAME") Response.write "<br>" Recordset.MoveNext Loop End If 'close the connection and recordset objects to free up resources Recordset.Close Set Recordset=nothing Connection.Close Set Connection=nothing 38 P a g e
39 UNIT-IV Connection Object: The Connection Object is directly related to command & recordset object other object can be created independently; they cannot communicate with a data source without going through the connection objet. Record set A record set can be used to represent the rows returned from a SQL query within an active server page script. Record set Object: A record set object can be used to represent only a single row or it can be used to represent dozens or even millions of rows. The same object is used no matter how much data is returned by a query. Record set Fields: Each record set contain field s collection it contains individual fields object. the fields in the fields collection represent the columns returned from the database query. Record set cursor: Whenever a record set is opened, either implicity or explicity a cursor is created in memory which will have a behavior called locking associated with it ADO cursor There are different types of ADO cursors *Forward only cursor *static cursor *keyset driven cursor *dynamic cursor 39 P a g e
40 Properties of field object *Actual size *Attributes *defined size *Name ADO locking types: The locktype property can have the value explain below *adlock readonly-the data cannot be altered *adlock pessimistic-other user are prevented from accessing the data *adlock optimistic-other user can access the record until the changes are actually committed *adlockbatch optimistic-this is used when performing batch updates Executing an SQL statement with the connection object: (i) creating a new database table (ii)inserting data into a database table (iii)updating data in a database table (iv)deleting data in a database table (V)selecting data from a database table 40 P a g e
41 Properties of field object: *Actualsize *Attributes *Defined size *Name *Numeric scale *Original value *precision *Type *Underlying value *Value ADO Cursor types forward only cursor *all the results are fetched *do not support backward scrolling static cursor *can scroll back and forth through the result set keyset-driven cursor *certain changes can be made *Supports scrolling dynamic cursor *fully supports scrolling 41 P a g e
42 How do you execute SQL statement with the connection object: *creating a new database table *inserting data into database table *updating data in a database table *selecting data from the database table advanced methods &properties of connection object Recordset cursor and locking types: *understanding ADO cursors *forward only cursor *static cursor *keyset-driven cursor *dynamic cursor *client-side&serverside cursor *understanding ADO locking types ASP Session Object A Session object stores information about, or change settings for a user session. The Session object ASP solves this problem by creating a unique cookie for each user. The cookie is sent to the user's computer and it contains information that identifies the user. This interface is called the Session object. The Session object stores information about, or change settings for a user session. When does a Session Start? A session starts when: 42 P a g e
43 A new user requests an ASP file, and the Global.asa file includes a Session_OnStart procedure A value is stored in a Session variable A user requests an ASP file, and the Global.asa file uses the <object> tag to instantiate an object with session scope When does a Session End? A session ends if a user has not requested or refreshed a page in the application for a specified period. By default, this is 20 minutes. If you want to set a timeout interval that is shorter or longer than the default, use the Timeout property. The example below sets a timeout interval of 5 minutes: Session.Timeout=5 Use the Abandon method to end a session immediately: Session.Abandon Note: The main problem with sessions is WHEN they should end. We do not know if the user's last request was the final one or not. So we do not know how long we should keep the session "alive". Waiting too long for an idle session uses up resources on the server, but if the session is deleted too soon the user has to start all over again because the server has deleted all the information. Finding the right timeout interval can be difficult! Tip: Only store SMALL amounts of data in session variables! Store and Retrieve Session Variables 43 P a g e
44 The most important thing about the Session object is that you can store variables in it. The example below will set the Session variable username to "Donald Duck" and the Session variable age to "50": Session("username")="Donald Duck" Session("age")=50 When the value is stored in a session variable it can be reached from ANY page in the ASP application: Welcome Response.Write(Session("username")) The line above returns: "Welcome Donald Duck". You can also store user preferences in the Session object, and then access that preference to choose what page to return to the user. The example below specifies a text-only version of the page if the user has a low screen resolution: If Session("screenres")="low" Then This is the text version of the page Else This is the multimedia version of the page End If Remove Session Variables The Contents collection contains all session variables. It is possible to remove a session variable with the Remove method. The example below removes the session variable "sale" if the value of the session variable "age" is lowers than 18: 44 P a g e
45 If Session.Contents("age")<18 then Session.Contents.Remove("sale") End If To remove all variables in a session, use the RemoveAll method: Session.Contents.RemoveAll() Loop through the Contents Collection The Contents collection contains all session variables. You can loop through the Contents collection, to see what's stored in it: Session("username")="Donald Duck" Session("age")=50 dim i For Each i in Session.Contents Response.Write(i & "<br>") Next Result: username age If you do not know the number of items in the Contents collection, you can use the Count property: dim i dim j 45 P a g e
46 j=session.contents.count Response.Write("Session variables: " & j) For i=1 to j Response.Write(Session.Contents(i) & "<br>") Next Result: Session variables: 2 Donald Duck 50 Loop Through the StaticObjects Collection You can loop through the StaticObjects collection, to see the values of all objects stored in the Session object: dim i For Each i in Session.StaticObjects Response.Write(i & "<br>") Next ADO (ActiveX Data Objects) This describes database connectivity with ADO (ActiveX Data Objects) and how you can use this to communicate and manage a database server. You will learn how to open a connection to a database, run INSERT, UPDATE, DELETE, and SELECT statements as well as execute a stored procedure. Content Active Server Pages, being a scripted language, is a stateless language. By this, we mean that it doesn't preserve the state of the application between page loads. 46 P a g e
47 Nearly all ASP hosting solutions will include some sort of database hosting. Most common is MySQL, followed by Microsoft SQL Server. No matter what database you are using, ADO will allow you to manage the database through Active Server Pages. While it's true that you can store persistant data in the Application object. This is basically just stored in a memory cache that will be flushed whenever IIS or the server is restarted. It also causes problems when trying to create an application which will be used in a server cluster (where each cluster has its own version of the Application cache.) Connecting to a Database Here is a sample showing how to open a connection to a database. To do this, we call the Server.CreateObject to create an instance of the built-in ADODB Connection object. Not only is this used to create the initial connection to the database, it will also be used to create the Recordset and Command Objects later. You will need to replace the text mysqluser, mysqlpass, and mysqldbname with the correct values for your database. Note that this is accessing a MySQL server on the local server (localhost) using ODBC. ' create a connection object Set oconnection = Server.CreateObject("ADODB.Connection") ' open a connection to a data source oconnection.open "Driver={MySQL ODBC 3.51 Driver};server=localhost;port=3306;uid=mysqluser;pwd=mysqlpass;database=mys qldbname;option=16384" 47 P a g e
48 Note that you could wrap this statement with an On Error block to trap any exceptions that may occur. INSERT, UPDATE, and DELETE The following will use the ADODB.Connection object to run an INSERT query on the database. The code is the same whether you are doing INSERT, UPDATE, or DELETE. You only need to change the squery variable with your modified query. ' build the query to run squery ="INSERT INTO Company VALUES ("Microsoft")" ' execute the insert statement oconnection.execute squery, nrecordsaffected, adcmdtext + adexecutenorecords Response.Write "Records Affected: " & nrecordsaffected The constants adcmdtext and adexecutenorecords are described in the section ADO Constants. SELECT The following code can be used to run a SELECT statement against a database. You must first open a connection to a database using the code described in the section Connecting to a Database. squery = "SELECT companyid, companyname FROM tblcompany" 48 P a g e
49 ' create the recordset object to hold the result sets Set rs = Server.CreateObject("ADODB.Recordset") ' set the number of records to fetch into memory at once (performance) rs.cachesize = 256 ' execute the query and populate the recordset rs.open squery, oconnection, adopenkeyset, adlockreadonly, adcmdtext 'More examples of SELECT (based on criteria) are: '*example 1. squery = "SELECT companyid, companyname FROM tblcompany WHERE companyid = 1" '1. See details below 1. When squery in above code snippet is set as example 1. it will fetch records with companyid having value 1, in this SQL statement WHERE clause is used to define that criteria. The constants adopenkeyset, adlockreadonly, and adcmdtext are described in the section ADO Constants. Now that you have opened a recordset, what can you do with it? Retrieving the Recordset The following code will show you how to use the recordset object (rs) described in the SELECT section to retrieve values from your database query. ' EOF checks for the end of a recordset If Not rs.eof Then 49 P a g e
50 ' The Fields collection accesses fields from a single record sfirstname = rs.fields("firstname").value ' You can enumerate all fields in the record For Each ofld In rs.fields Response.Write "Field = " & ofld.name & "<br>" Response.Write "Value = " & ofld.value & "<br>" Next End If ' You can also loop through all records Do Until rs.eof Response.Write "Name = " & rs.fields("firstname").value & "<br>" ' make sure you don't forget this next step ' MoveNext will move to the next record in the resultset rs.movenext Loop ' following is always a good idea to clean up resources ASAP rs.close : rs = 0 Closing a Database Connection You should always close your database connection when you are done accessing the database. It is not required, but it is always a good idea. ' it's a good idea to close your recordset first (if necessary) rs.close : rs = 0 ' this will close the database connection oconnection.close 50 P a g e
51 ADO Constants Variable 'adopenkeyset adlockreadonly adlockpessimistic adlockoptimistic adcmdtext adcmdtable Open a keyset Const adopenkeyset = 1 Purpose Create a database lock for read only access to a table. This is a forward-only cursor which provides the most efficient method for retrieving results. Const adlockreadonly = 1 This locking method will lock a database record as soon as edits have been made to the database. (Not really used in Active Server Pages) Const adlockpessimistic = 2 Use optimistic record locking on the database records. Meaning a record will only be locked when records have been modified and edits are committed back to the database. (Not really used in Active Server Pages) Const adlockoptimistic = 3 Indicates the SQL command being passed is text (an SQL statement) Const adcmdtext = 1 Indicates the SQL command being passed is the name of a database table to open (all rows and fields) adcmdstoredproc Const adcmdtable = 2 Indicates the SQL command being passed is the name of a stored procedure to execute. When using this call, the parameters must be defined separately. Const adcmdstoredproc = 4 51 P a g e
52 UNIT-V ASP Application Object A group of ASP files that work together to perform some purpose is called an application. The Application object is used to tie these files together. Application Object An application on the Web may consist of several ASP files that work together to perform some purpose. The Application object is used to tie these files together. The Application object is used to store and access variables from any page, just like the Session object. The difference is that ALL users share ONE Application object (with Sessions there is ONE Session object for EACH user). The Application object holds information that will be used by many pages in the application (like database connection information). The information can be accessed from any page. The information can also be changed in one place, and the changes will automatically be reflected on all pages. The Application object's collections, methods, and events are described below: Collections Collection Contents StaticObjects Description Contains all the items appended to the application through a script command Contains all the objects appended to the application with the HTML <object> tag 52 P a g e
53 Methods Method Contents.Remove Contents.RemoveAll() Lock Unlock Description Deletes an item from the Contents collection Deletes all items from the Contents collection Prevents other users from modifying the variables in the Application object Enables other users to modify the variables in the Application object (after it has been locked using the Lock method) Events Event Application_OnEnd Application_OnStart Description Occurs when all user sessions are over, and the application ends Occurs before the first new session is created (when the Application object is first referenced) Store and Retrieve Application Variables Application variables can be accessed and changed by any page in an application. You can create Application variables in "Global.asa" like this: <script language="vbscript" runat="server"> Sub Application_OnStart application("vartime")="" application("users")=1 53 P a g e
54 End Sub </script> In the example above we have created two Application variables: "vartime" and "users". You can access the value of an Application variable like this: There are Response.Write(Application("users")) active connections. Loop Through the Contents Collection The Contents collection contains all application variables. You can loop through the Contents collection, to see what's stored in it: dim i For Each i in Application.Contents Response.Write(i & "<br>") Next If you do not know the number of items in the Contents collection, you can use the Count property: dim i dim j j=application.contents.count For i=1 to j Response.Write(Application.Contents(i) & "<br>") Next 54 P a g e
55 Loop Through the StaticObjects Collection You can loop through the StaticObjects collection, to see the values of all objects stored in the Application object: dim i For Each i in Application.StaticObjects Response.Write(i & "<br>") Next Lock and Unlock You can lock an application with the "Lock" method. When an application is locked, the users cannot change the Application variables (other than the one currently accessing it). You can unlock an application with the "Unlock" method. This method removes the lock from the Application variable: Application.Lock 'do some application object operations Application.Unlock 55 P a g e
56 56 P a g e
vinodsrivastava.wordpress.com Working with ASP objects
vinodsrivastava.wordpress.com Working with ASP objects INTRODUCTION An object is a bundle of methods and properties, held in memory on the server, that we, the developer, can manipulate to accomplish programming
More informationASP: Active Server Pages
& - String Concatenation... 4:9 Block - Location of... 1:4 Tag... 1:3 A Abandon... 11:10 AbsolutePage... 16:7 AbsolutePosition... 16:7 Accessing Array Elements... 3:4 AddHeader... 8:13
More informationInternet Server Application Programming Interface. Objects Model. Application. Objects. Directives. Events. Collections. Methods
Active Server Pages (ASP) 1 Content Internet Server Application Programming Interface ASP Objects Model Properties, Collections, Methods, Events ActiveX Data Objects Examples 2 Sources Weissinger A. Keyton.
More informationASP (Active Server Pages) 1 ASP Purbanchal University: BCA V
http://sarojpandey.com.np ASP (Active Server Pages) 1 ASP Purbanchal University: BCA V http://sarojpandey.com.np ASP (Active Server Pages) 2 What is ASP? In the language of Microsoft: Ø Active Server Pages
More informationBrowser and Server Models. Jim Fawcett CSE686 - Internet Programming Spring 2011
Browser and Server Models Jim Fawcett CSE686 - Internet Programming Spring 2011 Topics Web Programming Model Browser Model Server Model Client/Server - Current Web Model Windows Server Client Computer
More informationThe ADO Connection Object is used to create an open connection to a data source. Through this connection, you can access and manipulate a database.
Unit 5: Accessing Databases with ASP and ADO Active Database Object(ADO) ADO represents a collection of objects that, via ASP, you can easily manipulate to gain incredible control over the information
More informationChapter 1: Getting Started. You will learn: Use of scripts in web applications. Scripts in web applications and browsers.
hapter 1: Getting Started Use of scripts in web applications. Scripts in web applications and browsers. How to embed VBScript in a HTML document. tag. Handling events. ommenting conventions. oding
More informationMSIT 537 ASP Module Number 2 QUERYSTRINGS, COOKIES, AND SESSIONS
MSIT 537 ASP Module Number 2 QUERYSTRINGS, COOKIES, AND SESSIONS Passing Information Through the Querystring When you only need to maintain state for the duration of a user's visit to your site, you have
More informationADO Query Executer. Manual 1.0
ADO Query Executer Manual 1.0 Table of contents GENERAL INFORMATION 3 PARAMETERS 4 TABLES 6 SQL 7 DATAVIEW 9 MESSAGES 10 HELP 11 General information ADOQE is a Win32 application used to execute SQL queries
More informationCrystal Enterprise 8 - ASP vs. CSP
Contents INTRODUCTION...2 BACKGROUND...2 OBJECTIVES...2 INTENDED AUDIENCE...2 GENERAL...2 WEB SERVER- AND PLATFORM-SUPPORT COMPARISON...2 Differences Between Deployment Architectures... 2 Possible Deployment
More informationActive Server Pages Architecture
Active Server Pages Architecture Li Yi South Bank University Contents 1. Introduction... 2 1.1 Host-based databases... 2 1.2 Client/server databases... 2 1.3 Web databases... 3 2. Active Server Pages...
More informationBruce Moore Fall 99 Internship September 23, 1999 Supervised by Dr. John P.
Bruce Moore Fall 99 Internship September 23, 1999 Supervised by Dr. John P. Russo Active Server Pages Active Server Pages are Microsoft s newest server-based technology for building dynamic and interactive
More informationChapter 7:- PHP. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.
Chapter 7:- PHP Compiled By:- Assistant Professor, SVBIT. Outline Starting to script on server side, Arrays, Function and forms, Advance PHP Databases:-Basic command with PHP examples, Connection to server,
More information4. กก ( Web-based Technology ) (System Development Life Cycle : SDLC) ก ก ก
2 ก ก ก ก ก ก ก 1. ก ก ก ก 1.1 ก ก 1.2 ก ก 2. ก ก.NET 3. ก ก ก 4. กก ( Web-based Technology ) 5. ก ก 6. ก ก ก ก ก 1. ก ก ก (System Development Life Cycle: SDLC) ก (System Development Life Cycle : SDLC)
More informationImagine. Create. Discover. User Manual. TopLine Results Corporation
Imagine. Create. Discover. User Manual TopLine Results Corporation 2008-2009 Created: Tuesday, March 17, 2009 Table of Contents 1 Welcome 1 Features 2 2 Installation 4 System Requirements 5 Obtaining Installation
More information3. WWW and HTTP. Fig.3.1 Architecture of WWW
3. WWW and HTTP The World Wide Web (WWW) is a repository of information linked together from points all over the world. The WWW has a unique combination of flexibility, portability, and user-friendly features
More informationWebsite Pros Database Component. v
Website Pros Database Component v1.00.02 Table Of Contents Before Getting Started... 2 Using the Database Component... 5 How the Database Component Works... 5 Adding the Toolbar... 6 Adding Component
More informationExcerpts of Web Application Security focusing on Data Validation. adapted for F.I.S.T. 2004, Frankfurt
Excerpts of Web Application Security focusing on Data Validation adapted for F.I.S.T. 2004, Frankfurt by fs Purpose of this course: 1. Relate to WA s and get a basic understanding of them 2. Understand
More informationWholesale Lockbox User Guide
Wholesale Lockbox User Guide August 2017 Copyright 2017 City National Bank City National Bank Member FDIC For Client Use Only Table of Contents Introduction... 3 Getting Started... 4 System Requirements...
More informationWeb-based Apps in.net
Web-based Apps in.net Objectives Real-world applications are typically multi-tier, distributed designs involving many components the web server being perhaps the most important component in today's applications...
More informationEND-TERM EXAMINATION
(Please Write your Exam Roll No. immediately) END-TERM EXAMINATION DECEMBER 2006 Exam. Roll No... Exam Series code: 100274DEC06200274 Paper Code : MCA-207 Subject: Front End Design Tools Time: 3 Hours
More informationActive Server Pages: Technology for Creating Dynamic Web Pages and Webenabled
Workshop on Multimedia and Internet Technologies 26 th -28 th February, 2001 DRTC, Bangalore Active Server Pages: Technology for Creating Dynamic Web Pages and Webenabled Databases Documentation Research
More informationIntroduction Hello and Welcome to the ASP Special Online Module Format!
Introduction Hello and Welcome to the ASP Special Online Module Format! This module has been designed as an alternative delivery format of course material. It is hoped that you will find it to be just
More informationTopView SQL Configuration
TopView SQL Configuration Copyright 2013 EXELE Information Systems, Inc. EXELE Information Systems (585) 385-9740 Web: http://www.exele.com Support: support@exele.com Sales: sales@exele.com Table of Contents
More informationSql Server Check If Global Temporary Table Exists
Sql Server Check If Global Temporary Table Exists I am trying to create a temp table from the a select statement so that I can get the schema information from the temp I have yet to see a valid justification
More informationRoxen Content Provider
Roxen Content Provider Generation 3 Templates Purpose This workbook is designed to provide a training and reference tool for placing University of Alaska information on the World Wide Web (WWW) using the
More informationVI. Corente Services Client
VI. Corente Services Client Corente Release 9.1 Manual 9.1.1 Copyright 2014, Oracle and/or its affiliates. All rights reserved. Table of Contents Preface... 5 I. Introduction... 6 II. Corente Client Configuration...
More informationAn Introduction to Windows Script Components
An Introduction to Windows Script Components Windows Script Components (WSC) provide with a simple and easy way to create COM components. You can use scripting languages such as JScript, VBScript, PERLScript,
More informationAssembling a Three-Tier Web Form Application
Chapter 16 Objectives Assembling a Three-Tier Application In this chapter, you will: Understand the concept of state for Web applications Create an ASP.NET user control Use data binding technology Develop
More informationSQL Studio (BC) HELP.BCDBADASQL_72. Release 4.6C
HELP.BCDBADASQL_72 Release 4.6C SAP AG Copyright Copyright 2001 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express
More information840 Database: SQL, ADO and RDS Chapter 25. Department Salary Location
iw3htp_25.fm Page 840 Tuesday, May 23, 2000 6:11 AM 840 Database: SQL, ADO and RDS Chapter 25 A record Number Name 25 Database: SQL, ADO and RDS Table: Employee Department Salary Location 23603 JONES,
More informationDATABASE VIEWER PLUS FOR IPAD: USER GUIDE PRODUCT VERSION: 4.1
DATABASE VIEWER PLUS FOR IPAD: USER GUIDE PRODUCT VERSION: 4.1. CONTENTS User Guide 1 INTRODUCTION...5 1.1 FEATURES...5 2 INSTALLATION...6 2.1 DESKTOP INSTALLATION...6 2.2 IPAD INSTALLATION:...10 3 USING
More informationunisys Internet Commerce Enabler Technical Overview imagine it. done. Release 11.1 October
unisys imagine it. done. Internet Commerce Enabler Technical Overview Release 11.1 October 2010 7850 2473 004 NO WARRANTIES OF ANY NATURE ARE EXTENDED BY THIS DOCUMENT. Any product or related information
More informationManual Trigger Sql Server 2008 Inserted Table Examples Insert
Manual Trigger Sql Server 2008 Inserted Table Examples Insert This tutorial is applicable for all versions of SQL Server i.e. 2005, 2008, 2012, Whenever a row is inserted in the Customers Table, the following
More informationFrontPage 2000 Tutorial -- Advanced
FrontPage 2000 Tutorial -- Advanced Shared Borders Shared Borders are parts of the web page that share content with the other pages in the web. They are located at the top, bottom, left side, or right
More informationFirmSite Control. Tutorial
FirmSite Control Tutorial 1 Last Updated June 26, 2007 by Melinda France Contents A. Logging on to the Administrative Control Center... 3 Using the Editor Overview:... 3 Inserting an Image... 7 Inserting
More informationAcknowledgments Introduction. Part I: Programming Access Applications 1. Chapter 1: Overview of Programming for Access 3
74029ftoc.qxd:WroxPro 9/27/07 1:40 PM Page xiii Acknowledgments Introduction x xxv Part I: Programming Access Applications 1 Chapter 1: Overview of Programming for Access 3 Writing Code for Access 3 The
More informationDatabase Manual Suite Version 2.8. Page 1 of 82. Noventri Suite Database Manual SF REV 03 3/21/14
Database Manual Suite Version 2.8 Page 1 of 82 Database Manual Table of Contents 1 Overview... 4 2 Database Image/Text General... 5 3 Data Text... 8 4 ODBC... 12 4.4 ODBC Connect... 13 4.4.1 General...
More informationDetects Potential Problems. Customizable Data Columns. Support for International Characters
Home Buy Download Support Company Blog Features Home Features HttpWatch Home Overview Features Compare Editions New in Version 9.x Awards and Reviews Download Pricing Our Customers Who is using it? What
More informationVisual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB
Visual Programming 1. What is Visual Basic? Visual Basic is a powerful application development toolkit developed by John Kemeny and Thomas Kurtz. It is a Microsoft Windows Programming language. Visual
More informationAdvanced ASP. Software Engineering Group. Departamento de Lenguajes y Sistemas Informáticos. escuela técnica superior de ingeniería informática
Tiempo: 2h [Ángel US V7] Diseño: Amador Durán Toro (2003-2006 Departamen de Lenguajes y Sistemas Ináticos escuela técnica superior de ingeniería inática Versión original: Amador Durán Toro (diciembre 2004
More informationCLIQ Web Manager. User Manual. The global leader in door opening solutions V 6.1
CLIQ Web Manager User Manual V 6.1 The global leader in door opening solutions Program version: 6.1 Document number: ST-003478 Date published: 2016-03-31 Language: en-gb Table of contents 1 Overview...9
More informationST. XAVIER S COLLEGE (Affiliated to Tribhuvan University) Maitighar, Kathmandu NET CENTRIC COMPUTING [CSC 360]
ST. XAVIER S COLLEGE (Affiliated to Tribhuvan University) Maitighar, Kathmandu NET CENTRIC COMPUTING [CSC 360] THEORY ASSIGNMENT #1 Submitted By Aashish Raj Shrestha 3 nd Year / 6 th SEM 013BSCCSIT002
More informationIslamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.
Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 5049 Advanced Internet Technology Lab Lab # 1 Eng. Haneen El-masry February, 2015 Objective To be familiar with
More informationDTS. The SQL Server 2000 client installation adds the necessary components for creating DTS packages. You can save your DTS packages to:
11 DTS Data Transformation Services (DTS) is the most versatile tool included with SQL Server 2000. Most SQL Server professionals are first exposed to DTS via the DTS Import and Export Wizard; however,
More informationAPI Gateway Version September Key Property Store User Guide
API Gateway Version 7.5.2 15 September 2017 Key Property Store User Guide Copyright 2017 Axway All rights reserved. This documentation describes the following Axway software: Axway API Gateway 7.5.2 No
More informationUTAS CMS. Easy Edit Suite Workshop V3 UNIVERSITY OF TASMANIA. Web Services Service Delivery & Support
Web Services Service Delivery & Support UNIVERSITY OF TASMANIA UTAS CMS Easy Edit Suite Workshop V3 Web Service, Service Delivery & Support UWCMS Easy Edit Suite Workshop: v3 Contents What is Easy Edit
More informationOracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2)
TRAINING & REFERENCE murach s Oracle SQL and PL/SQL (Chapter 2) works with all versions through 11g Thanks for reviewing this chapter from Murach s Oracle SQL and PL/SQL. To see the expanded table of contents
More informationRSA WebCRD Getting Started
RSA WebCRD Getting Started User Guide Getting Started with WebCRD Document Version: V8.1-3 Software Version: WebCRD V8.1.3 June 2011 2001-2011 Rochester Software Associates, Inc. All Rights Reserved. AutoFlow,
More information08/10/2018. Istanbul Now Platform User Interface
08/10/2018 Contents Contents...5 UI16... 9 Comparison of UI16 and UI15 styles... 11 Activate UI16... 15 Switch between UI16 and UI15...15 UI16 application navigator... 16 System settings for the user
More informationASP/COM+ Web Development Using Team Developer
ASP/COM+ Web Development Using Team Developer Unify Corporation 2 Table of Contents Abstract...3 General Overview of ASP...4 ASP and COM...7 COM+ Debugging and ASP...14 Requirements...14 3 Abstract ASP
More informationCS105 Perl: Perl CGI. Nathan Clement 24 Feb 2014
CS105 Perl: Perl CGI Nathan Clement 24 Feb 2014 Agenda We will cover some CGI basics, including Perl-specific CGI What is CGI? Server Architecture GET vs POST Preserving State in CGI URL Rewriting, Hidden
More informationDataAssist Help Documentation
DataAssist Help Documentation Copyright 2005-2007 WebAssist.com Corporation All rights reserved. Contents System Requirements DataAssist Wizard DataAssist Search Wizard DataAssist Search server behavior
More informationThe figure below shows the Dreamweaver Interface.
Dreamweaver Interface Dreamweaver Interface In this section you will learn about the interface of Dreamweaver. You will also learn about the various panels and properties of Dreamweaver. The Macromedia
More informationActive Server Pages 3.0
A Practical Guide to Microsoft Active Server Pages 3.0 By Manas Tungare www.manastungare.com About this guide... This practical guide aims to be a complete programming guide as well as a reference for
More information13. Databases on the Web
13. Databases on the Web Requirements for Web-DBMS Integration The ability to access valuable corporate data in a secure manner Support for session and application-based authentication The ability to interface
More informationManual Trigger Sql Server 2008 Insert Update Delete Selection
Manual Trigger Sql Server 2008 Insert Update Delete Selection Since logon triggers are server-scoped objects, we will create any necessary additional objects in master. WHERE dbs IN (SELECT authenticating_database_id
More informationINSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad
INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 INFORMATION TECHNOLOGY TUTORIAL QUESTION BANK Course Name Course Code Class Branch : Web Technologies : ACS006 : B. Tech
More informationUser's Guide c-treeace SQL Explorer
User's Guide c-treeace SQL Explorer Contents 1. c-treeace SQL Explorer... 4 1.1 Database Operations... 5 Add Existing Database... 6 Change Database... 7 Create User... 7 New Database... 8 Refresh... 8
More informationProcidia iware TrendWorX32. TrendWorX32 Configurator April 2010
Procidia iware TrendWorX32 TrendWorX32 Configurator Siemens Protection AG 2008. notice All / Copyright rights reserved. notice Introduction / Contents Procidia iware is an operator interface software designed
More informationSAS Data Explorer 2.1: User s Guide
SAS Data Explorer 2.1: User s Guide Working with SAS Data Explorer Understanding SAS Data Explorer SAS Data Explorer and the Choose Data Window SAS Data Explorer enables you to copy data to memory on SAS
More informationTable Basics. The structure of an table
TABLE -FRAMESET Table Basics A table is a grid of rows and columns that intersect to form cells. Two different types of cells exist: Table cell that contains data, is created with the A cell that
More informationGuide to Database Interaction from InstallShield for MySQL
A SankalpLabs White Paper October 5, 2010 Guide to Database Interaction from InstallShield for MySQL Author- Ashish Agarwal Page 1 of 7 Introduction InstallShield is the packaging software which helps
More information22. VB Programming Fundamentals Data Access with Data Objects
22. VB Programming Fundamentals Data Access with Data Objects 22.1 Data Access Object MS Data Access Object (DAO) enables you to use a programming language to access and manipulate data in local or remote
More informationReporter Tutorial: Intermediate
Reporter Tutorial: Intermediate Refer to the following sections for guidance on using these features of the Reporter: Lesson 1 Data Relationships in Reports Lesson 2 Create Tutorial Training Report Lesson
More informationProficy* HMI/SCADA - ifix U SING V ISICONX
Proficy* HMI/SCADA - ifix U SING V ISICONX Version 5.5 January 2012 All rights reserved. No part of this publication may be reproduced in any form or by any electronic or mechanical means, including photocopying
More informationPassword Protect an Access Database
Access a Password Protected Microsoft Access Database from within Visual Basic 6 Have you ever wanted to password protect an Access Database that is a Data Store (a repository of Data) used in one of your
More informationPerch Documentation. U of M - Department of Computer Science. Written as a COMP 3040 Assignment by Cameron McKay, Marko Kalic, Riley Draward
Perch Documentation U of M - Department of Computer Science Written as a COMP 3040 Assignment by Cameron McKay, Marko Kalic, Riley Draward 1 TABLE OF CONTENTS Introduction to Perch History of Perch ---------------------------------------------
More informationSCHULICH MEDICINE & DENTISTRY Website Updates August 30, Administrative Web Editor Guide v6
SCHULICH MEDICINE & DENTISTRY Website Updates August 30, 2012 Administrative Web Editor Guide v6 Table of Contents Chapter 1 Web Anatomy... 1 1.1 What You Need To Know First... 1 1.2 Anatomy of a Home
More informationWelcome to Selector2GO Help
Welcome to Selector2GO Help World Headquarters 445 Hamilton Avenue, 7th floor, White Plains, New York 10601 United States of America Support: +1 914 259 4900 support@rcsworks.com 2004-2018. All Rights
More informationIntroduction to MySQL. Database Systems
Introduction to MySQL Database Systems 1 Agenda Bureaucracy Database architecture overview Buzzwords SSH Tunneling Intro to MySQL Comments on homework 2 Homework #1 Submission date is on the website..
More informationWeb Application & Web Server Vulnerabilities Assessment Pankaj Sharma
Web Application & Web Server Vulnerabilities Assessment Pankaj Sharma Indian Computer Emergency Response Team ( CERT - IN ) Department Of Information Technology 1 Agenda Introduction What are Web Applications?
More informationManaging Configurations
CHAPTER 3 The Configurations page is your starting point for managing device configurations for network elements managed by Cisco Prime Network by using the CM tools. The following table lists the main
More informationWebSphere Application Server V7: Administration Consoles and Commands
Chapter 5 of WebSphere Application Server V7 Administration and Configuration Guide, SG24-7615 WebSphere Application Server V7: Administration Consoles and Commands WebSphere application server properties
More informationRSA WebCRD Getting Started
RSA WebCRD Getting Started User Guide Getting Started With WebCRD Document Version: V9.2.2-1 Software Version: WebCRD V9.2.2 April 2013 2001-2013 Rochester Software Associates, Inc. All Rights Reserved.
More informationWhat is MySQL? [Document provides the fundamental operations of PHP-MySQL connectivity]
What is MySQL? [Document provides the fundamental operations of PHP-MySQL connectivity] MySQL is a database. A database defines a structure for storing information. In a database, there are tables. Just
More informationData Exchange 3. The easy way to turn your data into valuable information. VERSION 3.0
Data Exchange 3 The easy way to turn your data into valuable information. VERSION 3.0 12-21-2017 DATA EXCHANGE 3 1 TABLE OF CONTENTS SECTION 1. Overview... 6 1.1. MAIN GOALS...6 1.2. How it Works...6 Data
More informationCERTIFICATE IN WEB PROGRAMMING
COURSE DURATION: 6 MONTHS CONTENTS : CERTIFICATE IN WEB PROGRAMMING 1. PROGRAMMING IN C and C++ Language 2. HTML/CSS and JavaScript 3. PHP and MySQL 4. Project on Development of Web Application 1. PROGRAMMING
More informationOracle Big Data Cloud Service, Oracle Storage Cloud Service, Oracle Database Cloud Service
Demo Introduction Keywords: Oracle Big Data Cloud Service, Oracle Storage Cloud Service, Oracle Database Cloud Service Goal of Demo: Oracle Big Data Preparation Cloud Services can ingest data from various
More informationITEC447 Web Projects CHAPTER 9 FORMS 1
ITEC447 Web Projects CHAPTER 9 FORMS 1 Getting Interactive with Forms The last few years have seen the emergence of the interactive web or Web 2.0, as people like to call it. The interactive web is an
More informationSurvey Creation Workflow These are the high level steps that are followed to successfully create and deploy a new survey:
Overview of Survey Administration The first thing you see when you open up your browser to the Ultimate Survey Software is the Login Page. You will find that you see three icons at the top of the page,
More informationPEGACUIS71V1 pegasystems
PEGACUIS71V1 pegasystems Number: PEGACUIS71V1 Passing Score: 800 Time Limit: 120 min Exam A QUESTION 1 Which of the following rule types does the Localization wizard translate? (Choose Two) A. Field Value
More informationAmgraf s OneForm Designer Plus Creating I-Forms
Amgraf s OneForm Designer Plus Creating I-Forms Presented by: Debra Poll List of File Names and Usage Note 1: OneForm Designer Plus creates all of the files needed to deploy Internet forms on Microsoft
More informationServer-Side Web Programming: Python (Part 1) Copyright 2017 by Robert M. Dondero, Ph.D. Princeton University
Server-Side Web Programming: Python (Part 1) Copyright 2017 by Robert M. Dondero, Ph.D. Princeton University 1 Objectives You will learn about Server-side web programming in Python Common Gateway Interface
More informationAdding records Pasting records Deleting records Sorting records Filtering records Inserting and deleting columns Calculated columns Working with the
Show All About spreadsheets You can use a spreadsheet to enter and calculate data. A spreadsheet consists of columns and rows of cells. You can enter data directly into the cells of the spreadsheet and
More informationEarly Data Analyzer Web User Guide
Early Data Analyzer Web User Guide Early Data Analyzer, Version 1.4 About Early Data Analyzer Web Getting Started Installing Early Data Analyzer Web Opening a Case About the Case Dashboard Filtering Tagging
More informationWIRELESS DATABASE VIEWER PLUS FOR POCKET PC PHONE: USER GUIDE PRODUCT VERSION: 1.5
WIRELESS DATABASE VIEWER PLUS FOR POCKET PC PHONE: USER GUIDE PRODUCT VERSION: 1.5. CONTENTS User Guide 1 INTRODUCTION...4 2 INSTALLATION...5 2.1 DESKTOP INSTALLATION...5 2.2 POCKET PC PHONE INSTALLATION:...9
More informationCHAPTER. Introduction
CHAPTER 1 Cisco Unified Communications Manager (formerly Cisco Unified CallManager) serves as the software-based call-processing component of the Cisco Unified Communications family of products. A wide
More informationAdobe Marketing Cloud Best Practices Implementing Adobe Target using Dynamic Tag Management
Adobe Marketing Cloud Best Practices Implementing Adobe Target using Dynamic Tag Management Contents Best Practices for Implementing Adobe Target using Dynamic Tag Management.3 Dynamic Tag Management Implementation...4
More informationNintex Reporting 2008 Help
Nintex Reporting 2008 Help Last updated: Thursday, 24 December 2009 1 Using Nintex Reporting 2008 1.1 Chart Viewer Web Part 1.2 Importing and Exporting Reports 1.3 Import Nintex report page 1.4 Item Level
More informationInfotek Solutions Inc.
Infotek Solutions Inc. Read Data from Database and input in Flight Reservation login logout and add Check point in QTP: In this tutorial we will read data from mysql database and give the input to login
More informationLimeSurvey User Guide to Creating Surveys
LimeSurvey User Guide to Creating Surveys Created: October 7, 2016 Last updated: March 20, 2017 Contents Gaining access to LimeSurvey... 3 Change your LimeSurvey password... 3 Importing an existing survey
More informationOverview of Cisco UCS Manager GUI
Overview of Cisco UCS Manager GUI This chapter includes the following sections: Overview of Cisco UCS Manager GUI, page 1 Logging in to Cisco UCS Manager GUI through HTTPS, page 6 Logging in to Cisco UCS
More informationMicrosoft Windows SharePoint Services
Microsoft Windows SharePoint Services SITE ADMIN USER TRAINING 1 Introduction What is Microsoft Windows SharePoint Services? Windows SharePoint Services (referred to generically as SharePoint) is a tool
More informationIntegration Services. Creating an ETL Solution with SSIS. Module Overview. Introduction to ETL with SSIS Implementing Data Flow
Pipeline Integration Services Creating an ETL Solution with SSIS Module Overview Introduction to ETL with SSIS Implementing Data Flow Lesson 1: Introduction to ETL with SSIS What Is SSIS? SSIS Projects
More informationWindows Database Applications
3-1 Windows Database Applications Chapter 3 In this chapter, you learn to access and display database data on a Windows form. You will follow good OOP principles and perform the database access in a datatier
More informationAcknowledgments Introduction. Chapter 1: Introduction to Access 2007 VBA 1. The Visual Basic Editor 18. Testing Phase 24
Acknowledgments Introduction Chapter 1: Introduction to Access 2007 VBA 1 What Is Access 2007 VBA? 1 What s New in Access 2007 VBA? 2 Access 2007 VBA Programming 101 3 Requirements-Gathering Phase 3 Design
More informationApplication Deployment System Guide Version 8.0 October 14, 2013
Application Deployment System Guide Version 8.0 October 14, 2013 For the most recent version of this document, visit our developer's website. Table of Contents 1 Application Deployment System 4 1.1 System
More informationEbook : Overview of application development. All code from the application series books listed at:
Ebook : Overview of application development. All code from the application series books listed at: http://www.vkinfotek.com with permission. Publishers: VK Publishers Established: 2001 Type of books: Develop
More informationWIRELESS DATABASE VIEWER PLUS (ENTERPRISE EDITION) SERVER SIDE USER GUIDE
WIRELESS DATABASE VIEWER PLUS (ENTERPRISE EDITION) SERVER SIDE USER GUIDE PRODUCT VERSION: 4.2 Wireless Database Viewer Plus(Enterprise Edition) Page 1 CONTENTS 1 INTRODUCTION...4 1.1 FEATURES...4 2 INSTALLATION...5
More information