C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

query string


Posted Date: 03 Jan 2007      Posted By: Divya Reddy      Member Level: Bronze     Points: 2   Responses: 3



what is the querystring and when to use it in our application

give me some answer in detail





Responses

Author: karthikeyanb    03 Jan 2007Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi
How do u connect uvr application to db via tool or coding?

If u use coding, u should pass the parameter by using query string.

Ex:
dim sql as string
dim sqlc as sqlcommand
sql="select * from tab1"
sqlc=new sqlcommand(sql,connection)
ok?



Author: Sriman N Vangala    03 Jan 2007Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

The QueryString collection is used to retrieve the variable values in the HTTP query string. The HTTP query string is specified by the values following the question mark (?), like this: <a href= "test.asp?txt=this is a query string test">Link with a query string</a> The line above generates a variable named txt with the value "this is a query string test". Query strings are also generated by form submission, or by a user typing a query into the address bar of the browser. Syntax Request.QueryString(variable)[(index)|.Count] Parameter Description --------------------------------------------------------- variable : Required. The name of the variable in the HTTP query string to retrieve index : Optional. Specifies one of multiple values for a variable. From 1 to Request.QueryString(variable).Count refer: http://www.w3schools.com/asp/coll_querystring.asp


Author: Pankaj Mishra    03 Jan 2007Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Hi,
when you want to pass some value to the next page you can use querystring.


eg

www.mysite.com?val=anything

Regards
Pankaj



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : paging in datalist
Previous : error
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use