Haven't been able to find a good answer to my situation yet. I want this textbox to only take numbers and still have the id "SearchString2" so I can use it in my controller. Any idea how?
if (Roles.IsUserInRole(WebSecurity.CurrentUserName, "Admin"))
{
@:<p><b>Customer ID:</b> @Html.TextBox("SearchString2")</p>
}
Thanks in advance.