protected void Page_Load(object sender, EventArgs e)
{
Int16 totalParameters;
if (!Page.IsPostBack)
{
totalParameters = Request.QueryString.AllKeys.Length;
Response.Write("The number of parameters the query string contains are "+totalParameters);
}
}
The Request.QueryString.AllKeys.Length will give you what you want
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment