title: how to generate id for custom helpers in mvc
body: <p>This is how I tried to create custom HTML helper and generate an id to it
  but when I use the tag in my razor, I'm getting the same id for all tags when rendered, some one help me to find solution.</p>
  
  <pre><code>public static MvcHtmlString MyLabel(this HtmlHelper html, string text)
          {
              var builder = new TagBuilder("myLable");
  
              builder.GenerateId("MyLableId1");
  
              builder.SetInnerText(text);
              return MvcHtmlString.Create(builder.ToString(TagRenderMode.Normal));
          }
  </code></pre>
  
  <p>In Razor</p>
  
  <pre><code>@using MvcAppCustomeHtmlHelpers.Helper;
  @Html.MyLabel("username")
  @Html.TextBox("username")&lt;br/&gt;
  @Html.MyLabel("password")
  @Html.TextBox("password")
  </code></pre>
  
  <p>when I render  text box the id is username and password for other textbox , but I'm unable to get id like text box for my custome html helper</p>