ASP Contents.Remove Method
Last Updated :
02 Sep, 2020
The ASP Contents.Remove Method is used to remove an item from the Application.Contents collection. It is a predefined method of the application type Object,
Syntax:
Application.Contents.Remove(name|index)
Parameter Values: It contains the value i.e name which represents the index of the specified items that would be removed from the application.
Return Values: This method has not returned any values.
Example: Below code illustrates how to remove the second item from the content list.
<%
Application("'name1")=("GeeksforGeeks")
Application("name2")=("Javatpoint")
Application("name3")=("Sanfoundary")
Application.Contents.Remove("name2")
for each x in Application.Contents
Response.Write(x & "=" & Application.Contents(x) & "<br>")
next
%>
Output
name1=GeeksforGeeks
name3=Sanfoundary
Share your thoughts in the comments
Please Login to comment...