Blog Archives

Deploying MVC dependencies to Azure

If you creating web application to be deployed to Windows Azure, you probably noticed that deployment and azure instance initialization may take a while. Any missing reference or break will cause you time and lost productivity. Few days ago I spent couple of hours trying to include all mvc references one by one making sure [...]

Share

ASP.NET MVC adding class attribute to Textbox element

Quick tip how to add class attribute to element using HTMLHelper class. I was trying to add required class name to enable validation and of cause found that class is reserved. Solution is simple – use @class <%= Html.TextBox("LastName", Model.LastName, new { @class = "required" })%>

Share