I want to create a helper that i can add content between the brackets just like Helper.BeginForm() does. I wouldnt mind create a Begin, End for my helper but it's pretty simple and easy to do it that way.
basically what i am trying to do is wrapping content between these tags so they are rendered already formatted
something like
@using Html.Section("full", "The Title")
{
This is the content for this section
<p>More content</p>
@Html.TextFor("text","label")
etc etc etc
}
the parameters "full" is the css id for that div and "the title" is the title of the section.
Is there a better way to achieve this other than doing what i am trying to do?
thanks in advance for any help.