Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

ASP.NET MVC RouteTable question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
laziers@gmail.com - 08 Apr 2008 20:29 GMT
Hi,
Anyone know how to set the RouteTable to do some think like this:

solution explorer:

+Views
---+Products
-----+List.aspx
-----+Add.aspx
---+Clients
------+List.aspx
---+Cms <---
------+News
---------+List.aspx

here we have a directory cms, that have news directory, with List.aspx
file

when I write url: site/cms/

the error appear:

Could not find an ASPX view at '~/Views/News/List.aspx'.

ok I understand why, but what I must do, to redirect to directory:  '~/
Views/Cms/News/List.aspx'

?
Cowboy (Gregory A. Beamer) - 10 Apr 2008 21:15 GMT
You need to add another branch in your route and order it so it gets fired
first. This new route takes in account the Cms folder. To make it simple,
you can name this a News controller, although it seems you have a bit of the
basics of mapping down.

Without seeing more, I am just shooting fish in the dark.

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************

| Think outside the box!

*************************************************
> Hi,
> Anyone know how to set the RouteTable to do some think like this:
[quoted text clipped - 24 lines]
>
> ?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.