Blog
.NET
ajaxcontroltoolkit
Best Practices
Blog
business tip
c#
Categories
comments
css
Database
email
Excel
flickr
GoDaddy
Google Analytics
Google Webmaster Tools
Hosting
IIS
Kentico CMS
linq
minne*
minnebar
MS SQL
MSSQL
MVC
MySQL
networking
peripheral
Rackspace Cloud
robots.txt
RSS
scripts
seo
service
sitemap.xml
Social Networking
tags
Title
trackbacks
training
twitter
Vista
Visual Studio
WordPress
xhtml
Add css class attribute to html helpers in asp.NET MVC 2
August 26, 2010 Author: Joel
It took me forever to find out how to do this so hoping this will save someone else the time.
Here is an example:
<%= Html.TextBoxFor(model => model.Email, new { @class = "txtLarge" })%>
In asp.NET MVC I used _class it seems in MVC 2 you need to use the @ symbol.
-
http://www.christianlouboutintobuy.com christian louboutin
-
Guest
-
http://www.astwoodconsulting.co.uk/ ms excel training
-
Categories
- asp.net (12)
- Blog (3)
- Business (5)
- Conferences (1)
- Errors (5)
- Office (1)
- Portfolio (3)
- Reviews (3)
- SEO (4)
- SQL Server (4)
- Tips (2)
- Uncategorized (2)
- Web Development (14)
-
Archives