How to use Html attributes for TextBoxFor in ASP.NET MVC ?


This content was proof-read by Grammarly. You can Try Grammary for FREE

Below is a sample code demonstrating how to use Html attributes for TextBoxFor in ASP.NET MVC

How to use Html attributes for TextBoxFor in ASP.NET MVC ?

@Html.TextBoxFor(model => model.WebsiteURL, new { disabled = "disabled" })
%d bloggers like this: