Asp.Net MVC custom controls - container
Posted
by Alan
on Stack Overflow
See other posts from Stack Overflow
or by Alan
Published on 2010-05-24T06:35:18Z
Indexed on
2010/05/24
7:01 UTC
Read the original article
Hit count: 305
ASP.NET
|asp.net-mvc
Is there a way to make helper in Asp.Net MVC to wrap other html like this:
<div class="lightGreyBar_left">
<div class="lightGreyBar_right">
<!--Content-->
<h3>
Profiles</h3>
<div class="divOption">
<%= Html.ActionLinkWithImage("Create new", "add.png", Keys.Actions.CreateProfile, "add")%>
</div>
<!--Content-->
</div>
</div>
So that helper will render containing divs and content that is passed to helper method as parameter.
© Stack Overflow or respective owner