Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cookie question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Titre:
Divers
Thread ID:
00924893
Message ID:
00925329
Vues:
21
I must have done something wrong because it didn't work.

I've changed to trying to do it by assigning the values I was going to put into cookies, into a listbox which I've sized to 1x1 pixels
I would have prefered to set it's visible to false but when I do that then I get an error because the Object isn't found.

Rick

>Would this work?
>
>Dim sMyCookie
>sMyCookie = Request.Cookies("MyCookie").Value
>
>
>
>>In part I have figured out what I was doing wrong...
>>I was using ASP syntax in a .Net environment...
>>My CodeBehind Page_Load code is now...
>>
>>        If Request.Cookies("ReminderTimes") Is Nothing Then
>>            Dim MyCookie As New HttpCookie("ReminderTimes")
>>
>>            MyCookie.Values.Add("TestAlarm", Now)
>>            MyCookie.Expires = Now.AddHours(1)
>>            Response.Cookies.Add(MyCookie)
>>        End If
>>
>>
>>I'm still doing it wrong in the HTML section where I try to read the cookie to send the date and time to my alarm control...
>>Could someone show me the correct way to read the cookie in the HTML area?
>>
>>TIA,
>>Rick
>>
>>>I'm trying to store information in such a way that a client side activeX can use the information. I have information in tables. One Table is Activities. It has a field called Alarm_Status. I need the date and time stored in alarm status to be accessible to the client side activeX alarm control.
>>>
>>>I was thinking that I could store the alarm_status into cookies to be accessed by the client side control. When I put the following code into my the Page_Load of my Code Behind stuff, it complains...
>>>
>>>Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
>>>    'Put user code to initialize the page here
>>>    Trace.Write("Page_Load", "We're in the Page_Load event!")
>>>
>>>    Session("ReminderTime") = Now
>>>    Response.Cookies("ReminderTime") = "test"
>>>
>>>.Net puts a squiggly line under it and when I hover over it I get the message that the
>>>Property 'Item' is 'Readonly'
>>>
>>>I thought the response was a write-only command and the request was a read-only command.
>>>
>>>How can I give this client-side control access to my information?
>>>
>>>TIA,
>>>Rick
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform