store data in the cache

CS1401
Posted by CS1401 under VB.NET category on | Points: 40 | Views : 2238

<%@ 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>

Comments or Responses

Login to post response