title: Why I've got Exception of type 'System.StackOverflowException' was thrown. in my own htmlhelper?
body: <p>I've written htmlhelper for checkbox in asp.net mvc but when I want to use it.It shows me a exception.<code>System.StackOverflowException' was thrown</code>How to solve it.and I also how to submit checkbox value to htmlhelper in fact,I want to submit value checkbox to my htmlhelper.</p>
  
  <pre><code> public static class HelperUI
      {
          public static MvcHtmlString CheckBoxSimple(this HtmlHelper htmlHelper, bool IsCheck, string name, object htmlAttributes)
          {
              string checkBoxWithHidden = htmlHelper.CheckBoxSimple(IsCheck, name, htmlAttributes).ToHtmlString();
              string pureCheckBox = checkBoxWithHidden.Substring(0, checkBoxWithHidden.IndexOf("&lt;input", 1));
              return new MvcHtmlString(pureCheckBox);
          }
      }
  
  
  
  
  &lt;div class="col-md-6"&gt;
      &lt;div class="form-group row"&gt;
          status
          &lt;div class="col-md-9"&gt;
              @Html.CheckBoxSimple(true, "Status", new { @class = "form-control", placeholder = "status" })
  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>