关于asp.net中的querystring [英] regarding querystring in asp.net

查看:97
本文介绍了关于asp.net中的querystring的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我无法删除页面中的查询字符串.

我尝试通过代码项目中的一篇文章中给出的解决方案
在ASP.NET中删除(删除)查询字符串",甚至在google中尝试过
我可以删除查询字符串,但是即使在
中,它也会再次添加到页面中 该特定页面未处理querystring.

请帮助我..

Hi,

I am unable to remove querystring in my page.

I tried by solution given in one of the article in code project
"Removing (Deleting) Querystring in ASP.NET" and even tried in google
I could remove the querystring but it is added again in the page, even though
querystring is not processed in that particular page.

please help me..

推荐答案

如果它是自动添加的,那么也许您应该检查global.asax文件中的Application_BeginRequest事件.也许是故意添加它们.

可以从任何HTTP模块执行相同操作,因此,如果您有某些模块干扰请求,也请检查它们.

如果我理解不正确,请告诉我,我将尝试改善答案.
If it is being added automatically then perhaps you should check the Application_BeginRequest event in global.asax file. perhaps it is deliberately being added their.

Same could be done from any HTTP module so if you have some modules interfering the requests, check them too.

Let me know if I understood incorrectly and I will try to improve my answer.


为什么要删除查询字符串?

考虑使用网址重写 [ ^ ].
Why do you want to remove query string?

Consider using Url Rewriting[^] instead, if it suits your case.


这篇关于关于asp.net中的querystring的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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