سلام
منوی HTML سایت در لایه ی دوم [صفحات زیرن دوم] کار نمیکنه ولی در لایه اصلی و حتی لایه اول کار میکنه
منظورم از لای اصلی:
www.site.com
لایه ی اول:
www.site.com/title
لایه ی دوم:
www.site.com/title/title2
اینم کدهای GLOBAL
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) RegisterRoutes(RouteTable.Routes)
RegisterRoutes_username(RouteTable.Routes)
End Sub
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application shutdown
End Sub
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
'Response.Redirect("~/عدم-دسترسی")
End Sub
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a new session is started
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a session ends.
' Note: The Session_End event is raised only when the sessionstate mode
' is set to InProc in the Web.config file. If session mode is set to StateServer
' or SQLServer, the event is not raised.
End Sub
Shared Sub RegisterRoutes(ByVal routes As RouteCollection)
'------------- for working updatepanel
routes.Ignore("{resource}.axd/{*pathInfo}")
'---------------------------------------------
routes.MapPageRoute("rss", "rss", "~/rss.aspx")
routes.MapPageRoute("rule", "قوانین-و-مقررات", "~/rules.aspx")
routes.MapPageRoute("howitworks", "چگونه-درگاه-فیلم-ایران-کار-میکند", "~/howitworks.aspx")
routes.MapPageRoute("article", "نقد-تحلیل-اخبار-فیلم-کوتاه", "~/posts.aspx")
routes.MapPageRoute("mediamaking", "رسانه-سازی-پخش-فیلم", "~/service_mediamaking.aspx")
routes.MapPageRoute("movibeta", "movibeta", "~/movibeta.aspx")
routes.MapPageRoute("Services", "سرویس-های-پخش-فیلم", "~/services.aspx")
routes.MapPageRoute("oscars", "فستیوال-های-اسکاری-فیلم-کوتاه", "~/festivalsOscar.aspx")
routes.MapPageRoute("festivalABC", "فستیوال-های-فیلم", "~/festivalABC.aspx")
routes.MapPageRoute("contact", "تماس-با-درگاه-فیلم-ایران", "~/contact.aspx")
routes.MapPageRoute("aboutus", "درباره-درگاه-فیلم-ایران", "~/aboutus.aspx")
routes.MapPageRoute("price", "هزینه-پخش-بین-المللی-فیلم", "~/prices.aspx")
routes.MapPageRoute("consultation", "مشاوره-پخش-بین-المللی-فیلم", "~/consultation.aspx")
routes.MapPageRoute("features", "ویژگی-های-پخش-فیلم-درگاه-فیلم-ایران", "~/features.aspx")
routes.MapPageRoute("notallow", "عدم-دسترسی", "~/notAllow.aspx")
routes.MapPageRoute("profileband", "پروفایل-خارج-از-دسترس", "~/outProfile.aspx")
End Sub
Shared Sub RegisterRoutes_username(ByVal routes As RouteCollection)
routes.MapPageRoute("POSTwithUnique", "{id}", "~/post.aspx")
routes.MapPageRoute("POST", "{id}/{title}", "~/post.aspx")
routes.MapPageRoute("categories", "{id}/{title}/دسته-محتوایی", "~/categories.aspx")
End Sub