I have asp.net mvc project, and it's structure and routes are as below.
"Site.Master" include images and css files,with paths:
- ../../Images/1.gif
- ../../Content/site.css.
When visiting the page "http://www.localhost.com/Info/Index/1001", it works.
But page "http://www.localhost.com/Info/Index/1001/1" or "http://www.localhost.com/Info/Index/1001/2", don't.
I modified the images and css file path in the Site.Master like:
- /Images/1.gif
- /Content/site.css
In addition, is there another way to fix it? or modify routes? Because, i want deploy it using virtual directory in iis.
-> Images
- 1.gif
- 2.jpg
-> Content
- site.css
-> Views
Home
-- index.aspx
Info
-- index.aspx
Shared
-- Site.Master
routes.MapRoute( "InfoPagedRoute", "{controller}/{action}/{classid}/{page}", new { controller = "Info", action = "Index", classid = @"\d{1,10}", page = 1 } );