Click here to Skip to main content
15,909,199 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
plz tell me answer

how many no. of values are transferred by querystring in asp.net
Posted
Comments
[no name] 6-Apr-15 3:20am    
http://www.codeproject.com/Articles/667331/Maximum-length-of-Querystring-in-ASP-NET

Follow this link

maximum number of query string values depend on the browser and the server software
check below link for more information
What is the maximum possible length of a query string?[^]
 
Share this answer
 
Comments
aarif moh shaikh 6-Apr-15 3:21am    
Good one....
There is nothing like maximum number of querystring and it doesn't have to do anything with ASP.Net. Rather, it depends on your web browser.
The web browser considers about the size/length of the URL instead of querystring.

Check following discussion-
What is the maximum length of a URL in different browsers?[^]

So, if you are limitting URL by 2000 characters then it'll work on any browser and server.

Hope, it helps :)
 
Share this answer
 
v2
Its depends on the URL length of the Browser

*Opera supports ~4050 characters

*IE 4.0+ supports exactly 2083 characters,

*Netscape 3 -> 4.78 support up to 8192 characters

*Netscape 6 supports ~2000

If you want to pass large string ,then you can use session variables ,If you use Query string the values are transparent to the user ,but using session variables the values hidden from the user.
 
Share this answer
 
v2
The number of values is pretty much irrelevant, given that there is no "absolute" limit on the length of a URL (of which the querystring is a part) and each individual browser has it's own set of limits: http://www.boutell.com/newfaq/misc/urllength.html[^]
The shortest "maximum" is the only one you can in practice work to, so the IE limit of 2,083 characters as a URL total is the realistic limit.

In practice, if you are trying to send lots of info in a query string, it's almost certainly a sign of poor design: you should instead consider sending a single item which allows your server code to identify all the other info it needs.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900