Google-sovellukset
Päävalikko

Post a Comment On: mo.notono.us

"MVC Route Constraint to Exclude Values"

2 Comments -

1 – 2 of 2
Blogger Unknown said...

How were you able to populate ControllerNameArray?

Wednesday, January 27, 2010 3:45:00 AM

Anonymous Anonymous said...

Andres - that was a manual process. I guess I could have done something with a T4 template, or potentially the T4MVC generated code may already provide that, I don't know.

In my case I used the T4MVC provided strongly typed names to create my array like this:

return new string[] {
MVC.About.Name, MVC.Admin.Name, MVC.Album.Name, MVC.Error.Name, MVC.Help.Name, MVC.Home.Name, ...
};

Friday, January 29, 2010 11:18:00 AM

You can use some HTML tags, such as <b>, <i>, <a>

Comments on this blog are restricted to team members.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot