Hi,
Not sure it's a asp.net problem, but i discovered it with asp.net, so ...
I need to pass data from page to another, so i use cookies for that. My
problem is that when a certain amount of cookies are created, the browser
doesn't render the page anymore. The threshold i found (with trial and
error) is this: 48 times 5 cookies.
If i put 49 instead of 48, the page is not rendered (error= "the page cannot
be rendered"), otherwise, below 49, it works.
Any explanation for that, and possibly a solution?
Thanks
André.
dim i as integer
Dim cokval As new HttpCookie("cok")
Dim cok1 As New HttpCookie("cok1")
Dim cok2 As New HttpCookie("cok2")
Dim cok3 As New HttpCookie("cok3")
Dim cok4 As New HttpCookie("cok4")
Dim cok5 As New HttpCookie("cok5")
for i=1 to 48
cok1.Value = 10
Response.Cookies.Add(cok1)
cok2.Value = 8
Response.Cookies.Add(cok2)
cok3.Value = 12
Response.Cookies.Add(cok3)
cok4.Value = 5
Response.Cookies.Add(cok4)
cok5.Value = 6
Response.Cookies.Add(cok5)
next 6 1482
Hey Andre,
You don't need to use cookies to pass data from one page to another.
For one thing the performance will suffer because cookies involve IO
operations (writing it and then reading it again)
Try and use the QueryString instead:
From page 1
Response.Redirect(string.Format("Page2.aspx?Item0= {0}&Item1={1},Item2={2}",10,8,12));
From Page 2
string Item0 = Request.QueryString["Item0"];
string Item1 = Request.QueryString["Item1"];
string Item2 = Request.QueryString["Item2"];
On Thu, 30 Nov 2006 18:29:42 +0100, "André" <hjhhb@ddwrote:
>Hi,
Not sure it's a asp.net problem, but i discovered it with asp.net, so ...
I need to pass data from page to another, so i use cookies for that. My problem is that when a certain amount of cookies are created, the browser doesn't render the page anymore. The threshold i found (with trial and error) is this: 48 times 5 cookies. If i put 49 instead of 48, the page is not rendered (error= "the page cannot be rendered"), otherwise, below 49, it works.
Any explanation for that, and possibly a solution? Thanks André.
dim i as integer
Dim cokval As new HttpCookie("cok")
Dim cok1 As New HttpCookie("cok1")
Dim cok2 As New HttpCookie("cok2")
Dim cok3 As New HttpCookie("cok3")
Dim cok4 As New HttpCookie("cok4")
Dim cok5 As New HttpCookie("cok5")
for i=1 to 48
cok1.Value = 10
Response.Cookies.Add(cok1)
cok2.Value = 8
Response.Cookies.Add(cok2)
cok3.Value = 12
Response.Cookies.Add(cok3)
cok4.Value = 5
Response.Cookies.Add(cok4)
cok5.Value = 6
Response.Cookies.Add(cok5)
next
--
Bits.Bytes. http://bytes.thinkersroom.com
Thanks, i will try/
But did you heard about that cookie limitation?
"Rad [Visual C# MVP]" <no****@nospam.comschreef in bericht
news:vf********************************@4ax.com...
Hey Andre,
You don't need to use cookies to pass data from one page to another.
For one thing the performance will suffer because cookies involve IO
operations (writing it and then reading it again)
Try and use the QueryString instead:
From page 1
Response.Redirect(string.Format("Page2.aspx?Item0= {0}&Item1={1},Item2={2}",10,8,12));
From Page 2
string Item0 = Request.QueryString["Item0"];
string Item1 = Request.QueryString["Item1"];
string Item2 = Request.QueryString["Item2"];
On Thu, 30 Nov 2006 18:29:42 +0100, "André" <hjhhb@ddwrote:
>>Hi,
Not sure it's a asp.net problem, but i discovered it with asp.net, so ...
I need to pass data from page to another, so i use cookies for that. My problem is that when a certain amount of cookies are created, the browser doesn't render the page anymore. The threshold i found (with trial and error) is this: 48 times 5 cookies. If i put 49 instead of 48, the page is not rendered (error= "the page cannot be rendered"), otherwise, below 49, it works.
Any explanation for that, and possibly a solution? Thanks André.
dim i as integer Dim cokval As new HttpCookie("cok") Dim cok1 As New HttpCookie("cok1") Dim cok2 As New HttpCookie("cok2") Dim cok3 As New HttpCookie("cok3") Dim cok4 As New HttpCookie("cok4") Dim cok5 As New HttpCookie("cok5") for i=1 to 48 cok1.Value = 10 Response.Cookies.Add(cok1) cok2.Value = 8 Response.Cookies.Add(cok2) cok3.Value = 12 Response.Cookies.Add(cok3) cok4.Value = 5 Response.Cookies.Add(cok4) cok5.Value = 6 Response.Cookies.Add(cok5) next
--
Bits.Bytes. http://bytes.thinkersroom.com
"André" <hjhhb@ddwrote in message
news:OH*************@TK2MSFTNGP02.phx.gbl...
I need to pass data from page to another, so i use cookies for that.
??? Why?
Yes, there are limits... Think about it. Should a server be allowed to
set a 1GB cookie on your hard disk?
Read this link for some details: http://blogs.msdn.com/wndp/archive/2...0_cookies.aspx
On Thu, 30 Nov 2006 19:41:45 +0100, "André" <hjhhb@ddwrote:
>Thanks, i will try/ But did you heard about that cookie limitation?
"Rad [Visual C# MVP]" <no****@nospam.comschreef in bericht news:vf********************************@4ax.com.. .
>Hey Andre,
You don't need to use cookies to pass data from one page to another. For one thing the performance will suffer because cookies involve IO operations (writing it and then reading it again)
Try and use the QueryString instead:
From page 1
Response.Redirect(string.Format("Page2.aspx?Item0 ={0}&Item1={1},Item2={2}",10,8,12));
From Page 2
string Item0 = Request.QueryString["Item0"]; string Item1 = Request.QueryString["Item1"]; string Item2 = Request.QueryString["Item2"];
On Thu, 30 Nov 2006 18:29:42 +0100, "André" <hjhhb@ddwrote:
>>>Hi,
Not sure it's a asp.net problem, but i discovered it with asp.net, so ...
I need to pass data from page to another, so i use cookies for that. My problem is that when a certain amount of cookies are created, the browser doesn't render the page anymore. The threshold i found (with trial and error) is this: 48 times 5 cookies. If i put 49 instead of 48, the page is not rendered (error= "the page cannot be rendered"), otherwise, below 49, it works.
Any explanation for that, and possibly a solution? Thanks André.
dim i as integer Dim cokval As new HttpCookie("cok") Dim cok1 As New HttpCookie("cok1") Dim cok2 As New HttpCookie("cok2") Dim cok3 As New HttpCookie("cok3") Dim cok4 As New HttpCookie("cok4") Dim cok5 As New HttpCookie("cok5") for i=1 to 48 cok1.Value = 10 Response.Cookies.Add(cok1) cok2.Value = 8 Response.Cookies.Add(cok2) cok3.Value = 12 Response.Cookies.Add(cok3) cok4.Value = 5 Response.Cookies.Add(cok4) cok5.Value = 6 Response.Cookies.Add(cok5) next
--
Bits.Bytes. http://bytes.thinkersroom.com
--
Bits.Bytes. http://bytes.thinkersroom.com
It would definitely be limited by the allowed header size for a
request. Look into MaxRequestBytes for IIS. There's also an upper limit
to querystring size, is there any reason you're not using session
state?
André wrote:
Thanks, i will try/
But did you heard about that cookie limitation?
"Rad [Visual C# MVP]" <no****@nospam.comschreef in bericht
news:vf********************************@4ax.com...
Hey Andre,
You don't need to use cookies to pass data from one page to another.
For one thing the performance will suffer because cookies involve IO
operations (writing it and then reading it again)
Try and use the QueryString instead:
From page 1
Response.Redirect(string.Format("Page2.aspx?Item0= {0}&Item1={1},Item2={2}",10,8,12));
From Page 2
string Item0 = Request.QueryString["Item0"];
string Item1 = Request.QueryString["Item1"];
string Item2 = Request.QueryString["Item2"];
On Thu, 30 Nov 2006 18:29:42 +0100, "André" <hjhhb@ddwrote:
>Hi,
Not sure it's a asp.net problem, but i discovered it with asp.net, so ....
I need to pass data from page to another, so i use cookies for that. My problem is that when a certain amount of cookies are created, the browser doesn't render the page anymore. The threshold i found (with trial and error) is this: 48 times 5 cookies. If i put 49 instead of 48, the page is not rendered (error= "the page cannot be rendered"), otherwise, below 49, it works.
Any explanation for that, and possibly a solution? Thanks André.
dim i as integer
Dim cokval As new HttpCookie("cok")
Dim cok1 As New HttpCookie("cok1")
Dim cok2 As New HttpCookie("cok2")
Dim cok3 As New HttpCookie("cok3")
Dim cok4 As New HttpCookie("cok4")
Dim cok5 As New HttpCookie("cok5")
for i=1 to 48
cok1.Value = 10
Response.Cookies.Add(cok1)
cok2.Value = 8
Response.Cookies.Add(cok2)
cok3.Value = 12
Response.Cookies.Add(cok3)
cok4.Value = 5
Response.Cookies.Add(cok4)
cok5.Value = 6
Response.Cookies.Add(cok5)
next
--
Bits.Bytes. http://bytes.thinkersroom.com
Thanks all
"Mark Rae" <ma**@markNOSPAMrae.comschreef in bericht
news:uU**************@TK2MSFTNGP03.phx.gbl...
"André" <hjhhb@ddwrote in message
news:OH*************@TK2MSFTNGP02.phx.gbl...
>I need to pass data from page to another, so i use cookies for that.
??? Why? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Brian Burgess |
last post by:
Hi all,
Anyone know if this is possible? If so, on which page would the
cookie be? .. On the page calling a function defined in the include
file?
thanks in advance..
-BB
|
by: duane |
last post by:
Dear Experts:
I have a problem with my JS cookies. I am setting cookies in files
located in two different directories, e.g. one in ROOT, one in
ROOT/dir1/dir2. The cookies are then sent to PHP...
|
by: AndrewMBaldwin |
last post by:
So I am quite upset that after working for a few hours on getting an
XML file format and XSL file that formats the XML data appropriatly,
only to find that if you store HTML code in your XML file...
|
by: Vasu |
last post by:
Hi,
I have a requirement to download a file from the web
site using a client tool.
Iam writing a C# program to download using WebRequest,
HttpRequest, WebResponse and
so on. The problem...
|
by: William F. Zachmann |
last post by:
We've got a project going that involves moving an old web site with a
massive dll written in C++ that produces most of the output from a SQL 7.0
data base on NT4 onto IIS on Windows 2003 Server...
|
by: rony_16 |
last post by:
Hi,
I have a program that connects to a site With WebRequest and
WebResponse .
The response of this site is a file (csv file).
The problem is that the file do not comes as a stream , hi is a part...
|
by: rony_16 |
last post by:
Hi,
I have problem with downloading a file using WebRequest and
HttpWebResponse.
Inorder to download this file i need to call to url that tells to
prepare the file for download,
and then i call...
|
by: André |
last post by:
Hi,
I try to create and render a graphic among other objects like e.g. tables,
labels, buttons.
The tables are not a problem, neither the graphic.
My problem is that i can't render both...
|
by: MimiMi |
last post by:
Hi y'all!
I'm new at perl, and I'm trying to automate a file fetch.
I have this url (in this example called 'https://GetMyFile'), which, when I paste it into a browser, gives me the pop-up "File...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
| |