Saturday, June 11, 2011
Remove query string
#region remove 'stat' query string
try
{
System.Reflection.PropertyInfo isreadonly =
typeof(System.Collections.Specialized.NameValueCollection).GetProperty(
"IsReadOnly", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
// make collection editable
isreadonly.SetValue(this.Request.QueryString, false, null);
//remove query string
this.Request.QueryString.Remove("stat");
}
catch
{
}
#endregion
Subscribe to:
Posts (Atom)