开发者

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开发者_Go百科 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?


<%= Html.TextBox("myID", "text_goes_here", new {@class = "className"}) %>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜