Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is diff between request.querystring and session and when , which condition they are used
Posted
Comments
Richard C Bishop 22-Feb-13 9:43am    
Those two are nothing alike and to ask this question shows that you have not even bothered to research either of the topics to even the slightest degree.
Orcun Iyigun 22-Feb-13 10:20am    
I wish I can 5 this comment...

Request.QueryString is the query string, meaning the values passed in after the url. http://www.mysite.com/page.aspx?id=1&catid=5

id=1&catid=5 is the querystring.

Session is something stored in memory (usually) on the server that you can only get access to in C# or server side code.
 
Share this answer
 
Request.QueryString() is used to pass information from one page to another page,which is totally visible to end user in Address url.
Session values are stored in the IIS memory.

My Suggestion is:When application to need transfer data securly,then use Session.
When security is not needed then you can use Request.QueryString()
 
Share this answer
 
v2
 
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