Having a class and ID together in an HTMLHelper method. ie. Text


Having a class and ID together in an HTMLHelper method. ie. Text



I saw this implemented somewhere but basically below I'm using the textbox HTMLHelper to draw a textbox with the id myID and default text 'text_goes_here'. I want to also add a class to thiis helper, i saw somewhere it implemented with new {@class =''} as a third parameter creating an object but im not sure exactly how its wrote

 <%= Html.TextBox("myID", "text_goes_here") %> 

anyone?


Is this code business logic or presentation logic?

1:

Sending collection of items in ASP.NET MVC
<%= Html.TextBox("myID", "text_goes_here", new {@class = "className"}) %> 
ASP.NET MVC forces an AJAX request be redirected to the login page when the FormsLogin session is no longer active

86 out of 100 based on 71 user ratings 146 reviews