如何编写逻辑url,例如/Survey/Survey1到/Surveys.aspx?id=1?

时间:2023-01-27 11:16:26

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. Just looking for how to get started on this. Should I use an httphandler or module? Thanks!

我正在尝试做一个简单的调查应用程序,它有一个url重写,我可以把surveyname输入到url中,我想把它重写为一个查询字符串。我只是想看看如何开始。我应该使用httphandler还是模块?谢谢!

1 个解决方案

#1


1  

Write your own HttpModule and insert regex there

编写自己的HttpModule并在其中插入regex

#1


1  

Write your own HttpModule and insert regex there

编写自己的HttpModule并在其中插入regex