如何在Webform中查找使用了多少个查询字符串 [英] How Can I Find How Many Querystrings Are Used In A Webform

查看:98
本文介绍了如何在Webform中查找使用了多少个查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



请帮我身体.....



i希望使用asp.net应用程序找到webform中的查询字符串,我的要求是我想编写一种方法来查找在webform中使用了多少查询字符串。



实际上我想知道在webform中使用了多少个查询字符串并使用查询字符串计数,我想要检索查询字符串值。

Hi All,

Please help me any body.....

i want to find out querystrings in a webform using with asp.net application and my requirement is i want to write a method to find how many querystrings are useing in a webform.

Actually i want to know how many querystrings are used in a webform and using with querystring count, i want to retrive the querystring value.

推荐答案

试试这个.. :)



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;

       }


这篇关于如何在Webform中查找使用了多少个查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆