how does Request.QueryString work?

后端 未结 5 2080
暗喜
暗喜 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:14

    Request.QueryString["pID"];
    

    Here Request is a object that retrieves the values that the client browser passed to the server during an HTTP request and QueryString is a collection is used to retrieve the variable values in the HTTP query string.

    READ MORE@ http://msdn.microsoft.com/en-us/library/ms524784(v=vs.90).aspx

提交回复
热议问题