通过这样做路由URL,我无法在页面中应用样式

问题描述:

请帮助我解决问题..

我是vs 2010中使用路由概念的新手.我在global.asax中使用以下代码.

Please help me in solving the problem..

I am new in using the Routing concept in vs 2010. I am using the following code in the global.asax.

void Application_Start(object sender, EventArgs e)
   {
       // Code that runs on application startup
       System.Web.Routing.RouteTable.Routes.MapPageRoute("Movies","Movies/{MovieId}","~/ViewMoveFulDetails.aspx");


   }



在aspx页面中,我使用了以下代码:



and in the aspx page i used the following code:

<asp:HyperLink ID="HyperLink1" runat="server" Target="_parent" NavigateUrl='<%# GetRouteUrl("Movies", new {MovieId = Eval("MovieId")}) %>' > View Full Details </asp:HyperLink>


一切都在目标文件中正常运行,即:
ViewMoveFulDetails.aspx

但是问题在于样式不是从母版页继承的,并且图像也没有加载到目标文件中.
谁能告诉我这是什么问题?


Everything is working fine in the Target File that is:
ViewMoveFulDetails.aspx

But the problem is styles are not inherted from master page and images are not loading in the target file.
Can any one tell me what is the problem ?

我看不到如何更改页面的加载方式,也不会更改母版页的处理方式.您是说母版页面部分根本没有加载?我认为,如果要加载母版页并且样式不在页面中,则样式必须在母版页中以某种方式为条件.

我从未做过,是新的吗?它使URL看起来像MVC,而不是MVC?
I don''t see how changing how the page is loaded, would change how master pages are processed. You''re saying that the master page part does not load at all ? I think if the master page is loading and the styles are not in the page, the styles must somehow be conditional in the masterpage.

I''ve never done this, is it new ? It makes the URLs look like MVC without being MVC ?