title: How to Create Custom "type" attribute for textboxfor in Asp.net MVC?
body: <p>I am working in MVC. I have stuck badly in a situation. 
  As we know,</p>
  
  <pre><code>    @Html.Textboxfor
  </code></pre>
  
  <p>have a property named <strong>type</strong> which detects the type of input which the textbox can take.</p>
  
  <p>For Ex: <strong>type = "email"</strong> takes email as input and if validation fails it shows error message like "Please Enter valid Email Address".</p>
  
  <p><strong>type = "number"</strong>  takes number only as input and shows validation message if text will use.</p>
  
  <p>I want that my textbox will  take Mobile/Phone numbers(with country codes and without country codes as well. e.g. +9177777777777). </p>
  
  <p>So Can i create my own custom <strong>"type"</strong> attribute which can accomplish above task and can generates my own validation message if validation fails ?</p>