ASP.NET MVC
I’ve seen lots of questions on how you can add a “class” attribute to any html tag such as the “a” tag while using the HtmlHelper class in ASP.NET MVC. The problem here is “class” is a reserved keyword in .NET so you just can’t use “class” in the htmlAttributes object of the HtmlHelper class. i.e. this will work perfectly. <%=Html.ActionLink("Log in","Login", null, new { id = "idforthislink" } %>
but this won’t
<%=Html.ActionLink("Log in","Login", null, new { id = "idforthislink", class ="red" } %>
It will error out on class. Here is the proper way of doing it.
<%=Html.ActionLink("Log in","Login", null, new...
For those of us who can't always afford to buy the ridiculously expensive VS Pro/Team 2008 - shouldn't Microsoft be giving those out for FREE. After all we are only promoting windows, without us developers the Windows operating system will be more or less like TinyOS. Anyway, lets leave that for another day.
I like using express simply because its lightweight and I don't really use all the features of the Pro versions anyway, I only wish I could "attach to process" then the express editions would be 100% ideal for me. Any who, the express editions do not support MVC - actually...
If you haven't been keeping track of the all new ASP.NET MVC then its time you start doing so. As of yesterdaty 12/9 the new ASP.NET (CTP) Extensions was made available to the public for download by Microsoft. The ASP.NET 3.5 Extensions Preview is a preview of new functionality being added to ASP.NET 3.5 and ADO.NET. The release includes an ASP.NET MVC, ASP.NET Dynamic Data, Silverlight controls for ASP.NET, ADO.NET Data Services, Entity Framework runtime, and new features for ASP.NET AJAX. If you don't know anything about MVC, I've listed a few links below that will give you a...
Next entries »