Codechef4u is a community for computer professionals,by computer professionals,just like you; who loves sharing and helping each others,Join them
Share your post

Benefits and limitations of using Query Strings

Benefits and limitations of using Query Strings

A query string is information sent to the server appended to the end of a page URL.

Advantages:

1. No server resources are required.
2. The query string containing in the HTTP requests for a specific URL.
3. All browsers support query strings.

Disadvantages:

1. Query string data is directly visible to user thus leading to security problems.-
Most browsers and client devices impose a 255-character limit on URL length.

2. Below is a sample “name” and “lastName” query string passed in URLhttp://www.localhost.com/Address.aspx?name=nagnath &lastName=kendre . This query string data can then be requested later by using
Request.QueryString(“name”).

Advantages and disadvantages of using client side state management

Below are list of client side state management objects

1. Cookies          
2. Query Strings 
3. Hidden Fields
4. View State     
5. Control State

Client-Side state management objects are splitted in three categories

1- URL (Such as Query-Strings)
2- Form (Such as Hidden Fields, view state and control state)
3- HTTP Handlers (Such as cookies)

Advantages:

No server resources are required.
Simple implementation

Disadvantages:

Performance considerations
Potential security risks
Depends on browser compatibility