简体   繁体   English

我应该如何将一个逻辑URL(例如/ Survey / Survey1)写入到/Surveys.aspx?id=1?

[英]How would I go about rfewriting a logical url such as /Survey/Survey1 to /Surveys.aspx?id=1?

I am trying to make a simple survey app that has a url rewrite where I can I will pass in the surveyname in the url I would like to rewrite this to a query string. 我正在尝试制作一个具有URL重写的简单调查应用程序,我可以在其中将URL的Surveyname传递给我,希望将其重写为查询字符串。 Just looking for how to get started on this. 只是在寻找如何入门。 Should I use an httphandler or module? 我应该使用httphandler还是模块? Thanks! 谢谢!

编写自己的HttpModule并在其中插入正则表达式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM