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);
}
{
string userName = Request.Params.Get("txtUserName");
Response.Write(userName);
}
--
Rajeev Kumar
No comments:
Post a Comment