Reputation: 4946
Does anyone know of a native ASP.NET way to insert a <div>
into an asp:ValidationSummary?
Upvotes: 1
Views: 327
Reputation: 8337
You may need to override the PreRender event to add this
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.validationsummary.onprerender.aspx
Upvotes: 0
Reputation: 2300
If you are inserting the div at the top you could use the Headertext attribute of the ValidationSummary like so.
<asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="<div> Stuff inside Div </div>" />
*Note if you are adding the style to the actual summary section you may want to try adding your style to the tag inside the summary.
Upvotes: 1
Reputation: 4618
If your only goal is to start a new block, just use a style:
#myDiv {
display: block;
}
Upvotes: 0