Won't Let Me Write Cookie

Posted on 2006-05-15
Last Modified: 2008-01-09
response.cookies("blah")= myReader("PSMem")

It won't let me write a cookie.  :(


Compiler Error Message: BC30526: Property 'Item' is 'ReadOnly'.
Question by:net_susan
    LVL 12

    Expert Comment

    Try this:

    response.cookies.add(new HttpCookie("blah", myReader("PSMem")))
    LVL 12

    Accepted Solution

    Response.Cookies("blah").Value = myReader("PSMem")
    LVL 1

    Author Comment

    >>Response.Cookies("blah").Value = myReader("PSMem")

    Yeah, there was some other reason it wasn't writing it. After spending four hours on it, I slept on it and came up with another solution in five minutes. LOL

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now