ASP Quick Reference from W3Schools. Print it, and fold it in your pocket. Basic Syntax ASP scripts are surrounded by <% and %>. To write some output to a browser: <html> <body> <% response.write(“Hello World!”) %> </body> </html> The default language in ASP is VBScript. To use another scripting language, insert a language specification at [...]
Read More >>
JAX is used to create more interactive applications. AJAX ASP Example The following example will demonstrate how a web page can communicate with a web server while a user type characters in an input field: Example Start typing a name in the input field below: First name: Suggestions: Try it yourself » Example Explained [...]
Read More >>
The Folder Object is used to return information about a specified folder. The Folder Object The Folder object is used to return information about a specified folder. To work with the properties and methods of the Folder object, you will have to create an instance of the Folder object through the FileSystemObject object. First; create [...]
Read More >>
HTML elements can be changed using JavaScript, the HTML DOM and events. Change an HTML Element HTML DOM and JavaScript can change the inner content and attributes of HTML elements. The following example changes the background color of the <body> element: Example <html> <body> <script type=”text/javascript”> document.body.bgColor=”lavender”; </script> </body> </html> Try it yourself » [...]
Read More >>
With the DOM, you can access every node in an HTML document. Accessing Nodes You can access a node in three ways: By using the getElementById() method By using the getElementsByTagName() method By navigating the node tree, using the node relationships The getElementById() Method The getElementById() method returns the element with the specified ID: Syntax [...]
Read More >>
The nodeName, nodeValue, and nodeType properties contain information about nodes. Node Properties In the HTML DOM, each node is an object. Objects have methods and properties that can be accessed and manipulated by JavaScript. Three important node properties are: nodeName nodeValue nodeType The nodeName Property The nodeName property specifies the name of a node. nodeName is [...]
Read More >>
The Dictionary object stores information in name/value pairs. The Dictionary object is used to store information in name/value pairs (referred to as key and item). The Dictionary object might seem similar to Arrays, however, the Dictionary object is a more desirable solution to manipulate related data. Comparing Dictionaries and Arrays: Keys are used to identify [...]
Read More >>

ASP Content Rotator Component The ASP Content Rotator component creates a ContentRotator object that displays a different content string each time a visitor enters or refreshes a page. A text file, called the Content Schedule File, includes the information about the content strings. The content strings can contain HTML tags so you can display any [...]
Read More >>
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. Syntax <% 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 [...]
Read More >>
The TextStream object is used to access the contents of a text file. The TextStream Object The TextStream object is used to access the contents of text files. The following code creates a text file (c:\test.txt) and then writes some text to the file (the variable f is an instance of the TextStream object): <% [...]
Read More >>