Request.Params(string name)获得页面控件的值

获得页面控件值

Response.Write(Request.Params[this.TextBox1.UniqueID]);
Response.Write(Request.Params["txt"]);

得到所有地址栏传的参数名称:

System.Collections.Specialized.NameValueCollection coll = Request.QueryString; 

String[] arr1 = coll.AllKeys; 

Response.Write(arr1[1].ToString());

原文地址:https://www.cnblogs.com/yongtaiyu/p/2371583.html