Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

Read Cookie - << C# VERSION >>


How to read a Cookie


<script language="VB" runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  ListBox1.Items.Clear()
  Dim cookieCols As New HttpCookieCollection
  cookieCols = Request.Cookies
  Dim str As String
  For Each str In cookieCols
    ListBox1.Items.Add("Cookie: " + str)
    ListBox1.Items.Add("Value:" & _
    Request.Cookies(str).Value)
  Next
End Sub
</script>
<HTML>
<body>
<form id="Form1" method="post" runat="server">
<asp:ListBox id="ListBox1" runat="server" Width="341px" Height="169px"></asp:ListBox>
</form>
</body>
</HTML>



Download Code...


Print Page


 








Page top

risorse per webmaster