Findlay .NET UserGroup Recap

I had a great time tonight at the Findlay .NET User group! Thanks everyone that battled the weather to come out and hear me talk about the ASP.NET MVC Framework. As promised, I have posted the route constraint to allow only alphabetical values to be accepted as valid input for the display named message.

 
routes.MapRoute("Message",

                 "Message/{action}/name/{Name}/",

                 new { controller = "Message", action = "HelloWorld", name = "" },

                 new {name="[a-zA-Z]+"}

  );

I apologize about the lapse in memory — The regular expression needed a + at the end to signify that it was more than one character whoops :)   For more information on Routes check out Justin Etheredge's post on routing

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>