June 2002
Intermediate to advanced
816 pages
28h 12m
English
Add
Application.Add(ByVal name As String, ByVal value As Object)
Adds a value to the Application collection.
Name
A variable of type String that specifies the name of the item to be added to the Application collection.
Value
A variable of type Object that contains the value for the item to be added to the Application collection.
The example adds an item to the Application collection and then displays it:
Sub Page_Load( )
Application.Add("Added", "AddedValue")
Message.Text = Application("Added")
End SubThe Add method, which is new in ASP.NET, provides a technique for adding items to the Application collection that is consistent with the technique used for adding items to other .NET collections. Of course, the classic ASP syntax of directly indexing the Application object by using the key name of index works correctly as well.
Read now
Unlock full access