Take a look at T4MVC. It's a T4 template for ASP.NET MVC and it creates strongly typed helpers that eliminate magic strings from controllers, actions and views.
http://aspnet.codeplex.com/wikipage?title=T4MVC Tapio Kulmala On 12/2/2009 5:10 PM, [email protected] wrote: > Hello, > > I want to know if there is a chance that I can put all my string > constants into a external file... Like a resource bundle in java. > > Example: > > if I have this > > [Code] > <input type="submit" value="TEST" /> > > I want > > [Code] > <input type="submit" value="{submit.key}" /> > > and submit.key=TEST<--- This will be in a resource bundle > > Don't know if I make myself clear.. If don't, please let me know > > Regards > > -- > > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
