I'm pretty sure its simple, but I'm a bit confused. I have a number of control files (eg. foo1.ascx, foo2.ascx) and they'll all have the same section of code like:
<table border="0" cellpadding="0" cellspacing="0" style="width:100%;margin-t
op:10px">
<tr>
<td>
<table border="0" cellpadding="2" cellspacing="0" style="height:100%; text-align:right;">
<tr>
<td style="padding-bottom:0px"
>
<div runat="server" id="divDayTop1" style="font-size:1px; line-height:1px; background-color:#E8EEF7; height:1px; margin-left:2px; margin-right:2px;"></div>
<div runat="server" id="divDayTop2" style="font-size:1px; line-height:1px; background-color:#E8EEF7; height:1px; margin-left:1px; margin-right:1px;"></div>
<div runat="server" id="divDay" style="background-color:#E
8EEF7; padding:4px 5px 3px 5px;">
<asp:LinkButton ForeColor="Black" runat="server" ID="lbDay" Text="Day" Font-Underline="false" Font-Names="arial" Font-Size="13px"></asp:Lin
kButton>
</div>
</td>
I'd like to put that code that is duplicated into a single file and to call that resulting file in from the ascx files for easy management ( 1 edit for a fix rather than many). How can this be done?
Start Free Trial