Asp.net URL路由 [英] Asp.net URL routing

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

问题描述

如何用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

ASP.NET Web表单URL路由

如果您需要更多帮助,请告诉我

Please let me know if you need more help


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

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