Friday, August 22, 2008

Request.Params - Passing Values

Passing Values using Request.Params
 
You can pass values from one page to another using Request.Params collection which returns collection of Form elements, Cookies, Server Variables and QueryString.
  if(Request.Params.Get("txtUserName") != null)
   {
    string userName = Request.Params.Get("txtUserName");
    Response.Write(userName);
   }


--
Rajeev Kumar

No comments: