Tips Station Asp.net Article Seo Articles
Tutorials Code Samples
›  Home
›  Mission
›  About us
›  Contact Us
›  Feedback
›  Terms & Condition
Asp Articles
IT Solutions
 
› ASP.NET

› Programming Tips

› Ajax

› Asp

› ADO.NET

› Databases

› SEO

› CSS And Designing

› Php

 
Most Viewed Articles
 
› Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

› Change theme dynamically without page refresh in ASP.NET

› Install AJAX On Machines Running Visual Studio 2005

› Creating Pretty Popups Using AJAX

› Simple ASP Image Resize Function

› SQL Server Performance Counters

› ASP.Net Interview Questions And Their Answers

› Encode Url using ASP

› Difference Between DataGrid and GridView in Asp.Net

› Select Specific Value WithIn Drop Down List Or Radio Button List

more...
 
 
Home> Asp
 
Application Object in Asp
 
The Application object is used to share information with all users of your application. When you set an Application Variable, that same variable is accessible throughout your application. An example of this would be to set an Application Variable for your database connection string:

Application("ConnStr") = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=G:\path\yourdb.mdb;"

The above code sets an Application Variable named "ConnStr" equal to the database connection string. It can then be accessed like this:

myDBConnStr = Application("ConnStr")

The above code sets a variable "myDBConnStr" equal to the Application Variable "ConnStr". It can then be used to connect to the database.

Similar to the above use you can use Application Variables to keep track of various commonly used information (paths, common urls, etc).

There are two methods that will help you use Application Variables:

Application.Lock - Prevents more than one user at a time from modifying a particular variable.
Application.UnLock - Unlocks the variables so that they can be used by another user.

An example of this would be if you had a statement that was going to be modified regularly and you wanted to keep track of the date and time that it was modified. After each time that it was changed you could set an Application Variable:

Application.Lock
Application("ModifiedDate") = Now
Application.UnLock
 
 
Vrp Technologies
 
Serversea Hosting
 
 
Latest Articles
 
› Sending SMS With PHP

› MySQL Join Tutorial

› Make An RSS Feed Using PHP

› Intro To Object: Option Variables

› Design An Online Chat Room With PHP And MySQL

› Create Tell A Friend Script With HTML & PHP

› Benchmark And Optimize PHP Script Speed

› What Kind of DBA Are You?

› SQL Server Performance Counters

› SQL Server Performance Tips

more...
 
Random Articles
 
› Get To The Top 10 Website Search Engine Rank In 5 Easy Steps

› Date Manipulation In ASP

› Storing and Retrieving Variables From Application Object - Asp

› Display records from Microsoft Excel in ASP

› How to export a GridView to Excel - Asp.net

› Find which control caused a postback - Asp.net

› 8 Useful SEO Techniques Every Webmaster Should Know

› Discovering Your Google PR (Page Rank) Value

› Intro To Object: Option Variables

› Design An Online Chat Room With PHP And MySQL

more...
 
Home Mission About us Contact us Feedback Terms Conditions
2008 © Copyright TipsStation. All rights reserved.