ASP.Net/Session Cookie/Cache — различия между версиями

Материал из .Net Framework эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 18:30, 26 мая 2010

Store data in the Cache (VB.net)

   <source lang="csharp">

<%@ Page Language="vb" %> <html>

  <head>
     <title>Cache property example</title>
     <script runat="server">
        Sub Page_Load()
           Cache("Name") = "Joe"
           Cache("Age") = 42
           Message.Text = CStr(Cache.Item("Name")) & " is " & _
              CStr(Cache("Age")) & " years old."
        End Sub
     </script>
  </head>

<body>

  <asp:label id="Message" runat="server"/>

</body> </html>

      </source>