0
在Global.asax的應用開始,我有爲什麼我的URL路由不起作用?
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
RegisterRoutes(RouteTable.Routes)
End Sub
和
Private Sub RegisterRoutes(ByVal routes As RouteCollection)
routes.MapPageRoute("contactform", "{locale}/contact", "~/general/ContactUs.aspx")
End Sub
是goimg就怪了,就是當我訪問的網頁直接
~/general/contactus.aspx
一切像魅力一樣工作,但當我間接訪問頁面時
~/en/contact
返回404錯誤!我在這裏錯過了什麼嗎?