且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Webform中查找使用了多少个查询字符串

更新时间:2022-11-16 09:47:55

试试这个.. :)



try this.. :)

protected void Page_Load(object sender, EventArgs e)
       {
           int TotalCount = QueryStringCount();
       }

       public int QueryStringCount()
       {
           int QueryCount = 0;

           QueryCount = Request.QueryString.Count;

           return QueryCount;

       }