web 2.0

ASP.NET(vb.net) Application.Keys() - Application Object

ASP.NET(vb.net) Application.Keys() - Application Object - Application.Keys() : Gets an ICollection containing the keys in the Application.

ShotDev Focus:
- ASP.NET(vb.net) Application.Keys() - Application Object

Example

AspNetApplicationRemoveAt.aspx

  1. <%@ Page Language="VB" %>  
  2. <script runat="server">  
  3.   
  4. Sub Page_Load(sender As Object, e As EventArgs)  
  5. Application("Database") = "mydatabase.mdb"  
  6. Application("UserID") = "myuser"  
  7. Application("Password") = "mypassword"  
  8.   
  9. Application.RemoveAt(1)  
  10.   
  11. ViewApplication()  
  12. End Sub  
  13.   
  14. Sub ViewApplication()  
  15. Dim items As Object  
  16. For Each items In Application.Keys  
  17. Me.lblText.Text = Me.lblText.Text & items & " = " & Application(items) & "<br>"  
  18. Next  
  19. End Sub  
  20.   
  21. </script>  
  22. <html>  
  23. <head>  
  24. <title>ShotDev.Com Tutorial</title>  
  25. </head>  
  26. <body>  
  27. <form id="form1" runat="server">  
  28. <asp:Label id="lblText" runat="server"></asp:Label>  
  29. </form>  
  30. </body>  
  31. </html>  

Screenshot

ASP.NET(vb.net) Application.Keys() - Application Object
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.