how does Request.QueryString work?

后端 未结 5 2076
暗喜
暗喜 2020-12-09 17:03

I have a code example like this :

 location.href = location.href + \"/Edit?pID=\" + hTable.getObj().ID; ; //aspx    
 parID = Request.QueryString[\"pID\"];          


        
5条回答
  •  春和景丽
    2020-12-09 17:30

    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:

    Link with a query string

    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.

    And see this sample : http://www.codeproject.com/Articles/5876/Passing-variables-between-pages-using-QueryString

    refer this : http://www.dotnetperls.com/querystring

    you can collect More details in google .

提交回复
热议问题