ASP.Net MVC Html.Label with Attribute List?

[3XTORTION]

New Member
How do I create an ASP.Net MVC Helper for an Html.Label which takes in attributes?Currently when I define an Html.TextBox I am able to pass in a list of attributes. Sort of like below: \[code\]new {disabled="disabled", @class="pcTextBoxWithoutPaddingDisabled"})%> \[/code\]However, it does not look as though the Html.Label has this feature. As a result, I have to define my labels using the label tag. Sort of like below:\[code\]<label class="pcLabelBlackWithoutPadding">\[/code\]I would like to be consistent I how my Html element get created.So, how do I create an Html.Label that will take in a list of attributes?Thanks for your help.
 
Back
Top