HtmlHelper Extensions

There are 1 entries for the tag HtmlHelper Extensions

Generic begin/end Html tag extension method

After working on the login usercontrol, I decided that I wanted to add similar functionality to the navigation sections of the site for accounts/roles that didn't get ads displayed. So I needed a standard way to put dynamic sections into a page. I liked the syntax used by the form HtmlHelper methods, so decided to base it off of the SimpleForm class and ended up with this//Based on the SimpleForm class in MvcToolkit //Wish I believed I would have ever thought to use//IDisposable to do thispublic class SimpleWrappingTag : IDisposable{ protected string _beginTagFormat = "<{0} {1}>"; ...

Copyright © Sean Lynch

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski