0

Im new to mvc so this I am sure is a stupid question. I have created a view that looks something simlar to

@using(Html.BeginForm())
{
 @Html.RoundedCorner()
 {
  <h1>Hello world</h1>
 }
}

Rounded corner is a just a helper class to create a nice looking rounded corner css box. When the page is rendered the form is created and also the rounded css box is applied however so does the text

MyProductName.Helpers.RoundedCorner

I assume this is because im doing something wrong but what? any tips?

jlnorsworthy
  • 3,914
  • 28
  • 34
Diver Dan
  • 9,953
  • 22
  • 95
  • 166

1 Answers1

1

You haven't shown how does your RoundedCorner helper look like but because I have some souvenirs of having written something like this you seem to be missing a using statement:

@using(Html.BeginForm())
{
    using (Html.RoundedCorner())
    {
        <h1>Hello world</h1>
    }
}
Community
  • 1
  • 1
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928