Для этого необходимо использовать HtmlAttributes, но существует выгода: HtmlAttributes и css класс .
можно определить его как это:
new { Attrubute="Value", AttributeTwo = IntegerValue, @class="className" };
и вот более реалистический пример:
new { style="width:50px" };
new { style="width:50px", maxsize = 50 };
new {size=30, @class="required"}
и наконец в:
MVC 1
<%= Html.TextBox("test", new { style="width:50px" }) %>
MVC 2
<%= Html.TextBox("test", null, new { style="width:50px" }) %>
MVC 3
@Html.TextBox("test", null, new { style="width:50px" })
Используйте функцию DATE ()
:
select * from follow_queue group by DATE(follow_date)