473,395 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Urgent help needed in cookie arrays

Hi,

In javascript file i store 3 values under a single cookie array ,like

var myarray = new Array(null);
myarray["a1"] = "field_1";
myarray["a2"] = "field_2";
myarray["a3"] = "field_3";
document.cookie ="myarray=" + myarray;

it is successfully executed.But i can not retrieve the stored cookie
values in my c#.net code.

***
Could u pls tell me the way i stored the cookie array in javascript is
right?if not pls tell me how.

***If so pls tell me how can i retrieve the stroed values in my c#.net
code.
Thanks & Regards
Raghu


*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
2 1378
Request.Cookies.Get("myarray").Value will give you a comma separated value of
the array values. use the strings split function to get the array back
BTW for this to work u shud use myarray[0] , myarray[1] ... instead on a1,a2

"Raghu Raman" wrote:
Hi,

In javascript file i store 3 values under a single cookie array ,like

var myarray = new Array(null);
myarray["a1"] = "field_1";
myarray["a2"] = "field_2";
myarray["a3"] = "field_3";
document.cookie ="myarray=" + myarray;

it is successfully executed.But i can not retrieve the stored cookie
values in my c#.net code.

***
Could u pls tell me the way i stored the cookie array in javascript is
right?if not pls tell me how.

***If so pls tell me how can i retrieve the stroed values in my c#.net
code.
Thanks & Regards
Raghu


*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #2


Dear Sarathty,

Thx for that,i wll try and getback to u.

Regards
Raghu
*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Craig Matthews | last post by:
hello, any idea why the following code does not work?!! <? $cookieExpire = 864000000; setcookie("a", "love", $cookieExpire); header("Set-Cookie: lc=50; expires=$cookieExpire");
7
by: Fnark | last post by:
Can anyone tell me why this code does not do what I want it to: <?php if (!isset($_COOKIE)) { setcookie("basket", $item_code, time()+60*60*24*30, "coursework", '', 0) ; } else { setcookie(...
10
by: Tony Archer | last post by:
Gentlemen, your urgent help is needed in solving a STRANGE problem. I have two servers a dev box, and a production box. On the dev box everything works fine, in production it hoses: One of...
1
by: Tony Archer | last post by:
(Forgive the dupicate post, I had left out the OS Version out of the prior post.) Gentlemen, your urgent help is needed in solving a STRANGE problem. I have two servers a dev box, and a...
11
by: Steve Darby | last post by:
Can anyone help with this problem. I am attempting to dynamically draw a graph using data from a cookie. I have written the script to actually draw the graph, for which I hav created two arrays...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
3
by: Shapper | last post by:
Hello, I have a Cookie which can have one or many values. One of this values is "Culture". How can I change the "Culture" value which in inside the cookie? This is what I have: Dim cookie...
1
by: irfi | last post by:
Ok can anyone help me with this problem I have to create a program in NetBeans 4.0 and this is the requirement:- I have to create a base class which consists of EMPLOYEE NAME, CODE and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.