Hi there.
I have a bunch of UserControls on my site that look very much alike, with
some surrounding markup and images. Can I use MasterPages for that (I guess
not) or something similar ? I think skins would not do it but I'd be happy
to be proven wrong. Here are two extremely simplified examples of the
controls I have:
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="FirstControl.ascx.cs" Inherits="FirstControl" %>
<table class="someclass">
<tr><td background="someImage.gif"><img src="logo.gif"></td></tr>
<tr>
<td class=otherClass>
This TD holds the part that varies in each control.<br>
<asp:label id=somelabel runat=server /> etc...
</td>
</tr>
</table>
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="SecondControl.ascx.cs" Inherits="SecondControl" %>
<table class="someclass">
<tr><td background="someImage.gif"><img src="logo.gif"></td></tr>
<tr>
<td class=otherClass>
Some other thing here
<asp:TexBox runat=server />
</td>
</tr>
</table>
Any advice ?
Thanks
- Sergio