I'm writing my first asp.net mvc application and I have a question about custom Html helpers:
For making a form, you can use:
<% using (Html.BeginForm()) {%>
*stuff here*
<% } %>
I would like to do something similar with a custom HTML helper.
In other words, I want to change:
Html.BeginTr();
Html.Td(day.Description);
Html.EndTr();
into:
using Html.BeginTr(){
Html.Td(day.Description);
}
Is this possible?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…