I want to set it so that you can only input values in the textbox, plain and simple. But the picture shows the result I get. Any idea what the problem is? I had one text box set up like this a few months back so I know that something in the lines if this should work.
Html code:
if (Roles.IsUserInRole(WebSecurity.CurrentUserName, "Admin"))
{
@:<p><b>Customer ID:</b> @Html.TextBox("SearchString2", new {@type="number"})</p>
}
Thanks in advance.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.