In this post, I will explain about QueryString in Asp.Net.
A QueryString is a collection of characters appended to the end of a page URL. QueryString generally used to pass value from one web page to another web page using URL. A QueryString is easy to use and pass value within web pages. A Query strong can be used to pass a small amount of data, large data cannot be passed using QueryString. QueryString can be attached to URL by using the character "?". We can append single or multiple QueryString parameters to URL. Multiple QueryString parameters can be separated using "&" character.
Advantages:
1. Easy to use.
2. Server resources are not required.
3. All browser supports QueryString.
Disadvantages:
1. Large data cannot be passed using QueryString.
2. QueryString are not secure because the parameter value is directly visible to the user.
Example
1. QueryString with a single parameter
www.programmingtrends.com?Param1=Google
1. QueryString with multiple parameters
www.programmingtrends.com?Param1=Google&Param2=India
Example
1. QueryString with a single parameter
www.programmingtrends.com?Param1=Google
1. QueryString with multiple parameters
www.programmingtrends.com?Param1=Google&Param2=India
0 comments:
Post a Comment
Please do not enter any spam link in the message box.