Read these 7 ASP and Web Development Tips tips to make your life smarter, better, faster and wiser. Each tip is approved by our Editors and created by expert writers so great we call them Gurus. LifeTips is the place to go when you need to know about Web Development tips and hundreds of other topics.
When you instantiate an obbect, such as a connection, recordset, filesystemobject, etc., remember to .close them, and to also set them to "nothing". Each time an object is created, memory is used up. Yes, when you exit a function the object instantiated within them go out of scope and supposedly are close, but it's a good programming practice to close and free up anyway.
For example:
dim rs
set rs = getUsersRS()
if not rs.eof then
do while not rs.eof
'do something here
rs.movenext
loop
end if
rs.close
if not rs is nothing then set rs = nothing
this effectively kills off the recordset object rs.
In web development, reusable bits of asp, perl or html code called include files are used to maintain consistency and provide a basic level of dynamic delivery when used in html templating. This can be very handy when working on a large site as you can effectively change all the pages that reuse the include by only making code changes to the appropriate include file.
This collection property allows you to contain and retrieve values POSTed through a website FORM. Among other things it can allow you to personalize a user experience by pre-populating other form elements or generating dynamic content.
Active server pages are dynamically generated web pages served by IIS server-side technology from Microsoft. ASP objects are used to create dynamic elements on web pages. ASP pages have the extension .asp and the most commonly used scripting language or writing ASP is VBScript, although you can use many other common scripting languages.
When you instantiate an obbect, such as a connection, recordset, filesystemobject, etc., remember to .close them, and to also set them to "nothing". Each time an object is created, memory is used up. Yes, when you exit a function the object instantiated within them go out of scope and supposedly are close, but it's a good programming practice to close and free up anyway.
For example:
dim rs
set rs = getUsersRS()
if not rs.eof then
do while not rs.eof
'do something here
rs.movenext
loop
end if
rs.close
if not rs is nothing then set rs = nothing
this effectively kills off the recordset object rs.
The words active server pages indicate this is a server-side process. When a customer comes to your home page (index.asp), their browser will request that page from your server. Once the file has been located, the page code is processed by the server and generates the html code to display in the user's browser. For example, you might use an asp script to retrieve a cookie with a return customer's name to personalize your home page for them.
There are numerous programming languages to create websites and web applications with. Following are a few of the most common.
Guru Spotlight |
Susan Sayour |