Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem reading ASP.net cookie

Status
Not open for further replies.

DotNetBlocks

Programmer
Apr 29, 2004
161
US
Hello,

Does anyone have a javascript example of reading a subcookie created in asp.net?

Here is how I am creating my cookie.
Code:
       Dim Cookie As New HttpCookie("temp")
        Cookie.Values.Add("Name","Value")
        Page.Response.Cookies.Add(Cookie)

Babloome

Personal Blog: http:\\WeToddz.com
 
I almost forgot. Here is how I am attempting to read the cookie with no luck.

Code:
function cbxcheck(obj,row,col,cookiename, subname,value) 
{
    
    if (obj.checked)
    {document.cookie[cookiename][subname]= value;
    alert('on');
    }
    else
    {document.cookie[cookiename][subname]='';
    alert('off');
    }
}

Personal Blog: http:\\WeToddz.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top