Asp.net URL路由 [英] Asp.net URL routing
问题描述
如何用4.0非MVC项目解决同样的问题?我有相同的条件相同的参数,但
需要重新切换到不同的页面?我有同样的问题!我的意思是说如何根据网址决定目标网页
routes.MapPageRoute(" TutorFaqs"," {Tutor} / Faqs","〜 /TutorFaqs.aspx");
$
routes.MapPageRoute(" StudentFaqs"," {Student} / Faqs","〜/ StudentFaqs.aspx");
routes.MapPageRoute("TutorFaqs", "{Tutor}/Faqs", "~/TutorFaqs.aspx");
routes.MapPageRoute("StudentFaqs", "{Student}/Faqs", "~/StudentFaqs.aspx");
第1个网址是http:// localhost:24987 / Tutor / Faqs
url of 1st is http://localhost:24987/Tutor/Faqs
第2个网址是 http:// localhost:24987 / Student-Parent /常见问题
url of 2nd is http://localhost:24987/Student-Parent/Faqs
lokesh
推荐答案
您好,
如果您的问题是如何在ASP.NET Web表单中实现URL路由。这篇文章可以帮到你
If your question is how to implement Url Routing in ASP.NET web forms. this is an article may help you
Please let me know if you need more help
这篇关于Asp.net URL路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!