How many different values we may pass in a query string?
How many different values we may pass in a query string?
am 14.01.2008 19:42:02 von Andrew
Hello, friends,
I am testing our website (in 2003.net, c#) application. Sometimes there more
values in Querystring, like
http://www.xxxxxx.com/webpage1.aspx?mc_gross=69.90&address_s tatus=confirmed&item_number1=42&item_number2=43&payer_id=FDU B8TPHR7ZHA&tax=0.00&......
However, if the number of different values in query string is more than 44,
we got error from IE, saying
Internet Explorer cannot display the webpage
Most likely causes:
You are not connected to the Internet.
The website is encountering problems.
There might be a typing error in the address.
........
Does that mean .aspx can only accept 44 different values in a query string?
Or there are some other problems here?
Thanks a lot.
RE: How many different values we may pass in a query string?
am 14.01.2008 19:54:00 von brucebarker
a url is limited to about 2k (the exact length depnds on browser and
character sets), your query string is probably being truncated.
-- bruce (sqlwork.com)
"Andrew" wrote:
> Hello, friends,
>
> I am testing our website (in 2003.net, c#) application. Sometimes there more
> values in Querystring, like
>
> http://www.xxxxxx.com/webpage1.aspx?mc_gross=69.90&address_s tatus=confirmed&item_number1=42&item_number2=43&payer_id=FDU B8TPHR7ZHA&tax=0.00&......
>
> However, if the number of different values in query string is more than 44,
> we got error from IE, saying
>
> Internet Explorer cannot display the webpage
>
> Most likely causes:
> You are not connected to the Internet.
> The website is encountering problems.
> There might be a typing error in the address.
> .......
>
> Does that mean .aspx can only accept 44 different values in a query string?
> Or there are some other problems here?
>
> Thanks a lot.
>
Re: How many different values we may pass in a query string?
am 14.01.2008 19:54:13 von mark
"Andrew" wrote in message
news:B20ED0EA-1034-4045-94A2-6523BA5C428B@microsoft.com...
> Does that mean .aspx can only accept 44 different values in a query
> string?
It's not the number of name-value pairs per se, but the length of the actual
URL which is limited to 2,083 characters, at least, in Internet Explorer...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Re: How many different values we may pass in a query string?
am 14.01.2008 20:02:26 von Patrice
AFAIK the total length of the querystring is about 2048... and it can be
browser dependent. My guess is that you are hitting an overall size
limit....
Usually values are posted to the same page using the post method. Have you
choosed to user the QueryString over the post method for some reason ?
For now I would recommend switching back to using the post method...
--
Patrice
"Andrew" a écrit dans le message de news:
B20ED0EA-1034-4045-94A2-6523BA5C428B@microsoft.com...
> Hello, friends,
>
> I am testing our website (in 2003.net, c#) application. Sometimes there
> more
> values in Querystring, like
>
> http://www.xxxxxx.com/webpage1.aspx?mc_gross=69.90&address_s tatus=confirmed&item_number1=42&item_number2=43&payer_id=FDU B8TPHR7ZHA&tax=0.00&......
>
> However, if the number of different values in query string is more than
> 44,
> we got error from IE, saying
>
> Internet Explorer cannot display the webpage
>
> Most likely causes:
> You are not connected to the Internet.
> The website is encountering problems.
> There might be a typing error in the address.
> .......
>
> Does that mean .aspx can only accept 44 different values in a query
> string?
> Or there are some other problems here?
>
> Thanks a lot.
>
Re: How many different values we may pass in a query string?
am 14.01.2008 20:12:06 von sloan
Your other trick is to artificially shorten the URL
www.mysite.com/editsomething.aspx?employeeidentificationnumb er=123&employeehomedepartment=human%20resources
to
www.mysite.com/editsomething.aspx?eid=123&edept=human%20reso urces
something like that.
its less readable, but you have less characters, thus you might make it...
aka, don't have the parameter name as
employeeidentificationnumber
but rather something super short like
eid
"Andrew" wrote in message
news:B20ED0EA-1034-4045-94A2-6523BA5C428B@microsoft.com...
> Hello, friends,
>
> I am testing our website (in 2003.net, c#) application. Sometimes there
> more
> values in Querystring, like
>
> http://www.xxxxxx.com/webpage1.aspx?mc_gross=69.90&address_s tatus=confirmed&item_number1=42&item_number2=43&payer_id=FDU B8TPHR7ZHA&tax=0.00&......
>
> However, if the number of different values in query string is more than
> 44,
> we got error from IE, saying
>
> Internet Explorer cannot display the webpage
>
> Most likely causes:
> You are not connected to the Internet.
> The website is encountering problems.
> There might be a typing error in the address.
> .......
>
> Does that mean .aspx can only accept 44 different values in a query
> string?
> Or there are some other problems here?
>
> Thanks a lot.
>
RE: How many different values we may pass in a query string?
am 14.01.2008 21:34:06 von pbromberg
As indicated by others, you could try shortening the length of your
querystring by making the names portion of the name=value pairs
very short, e.g. ?a=asdas&b=asdkask.....&aa=xyz&ab=cvbn .. etc.
--Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"Andrew" wrote:
> Hello, friends,
>
> I am testing our website (in 2003.net, c#) application. Sometimes there more
> values in Querystring, like
>
> http://www.xxxxxx.com/webpage1.aspx?mc_gross=69.90&address_s tatus=confirmed&item_number1=42&item_number2=43&payer_id=FDU B8TPHR7ZHA&tax=0.00&......
>
> However, if the number of different values in query string is more than 44,
> we got error from IE, saying
>
> Internet Explorer cannot display the webpage
>
> Most likely causes:
> You are not connected to the Internet.
> The website is encountering problems.
> There might be a typing error in the address.
> .......
>
> Does that mean .aspx can only accept 44 different values in a query string?
> Or there are some other problems here?
>
> Thanks a lot.
>