Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

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


   }


and in the aspx page i used the following code:
ASP.NET
<asp:HyperLink ID="HyperLink1" runat="server" Target="_parent" NavigateUrl='<%# GetRouteUrl("Movies", new {MovieId = Eval("MovieId")}) %>' > View Full Details </asp:HyperLink>

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 ?
Posted
v2

1 solution

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 ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900