D
ddd
Are there any examples of how to use themes and tables? I am having a hard
time making specifying the display properties in the skin file.
My code on the page looks like:
<asp:table runat="server" SkinID="searchBoxTable">
<asp:TableHeaderRow>
<asp:TableHeaderCell ColumnSpan="3">
Selection Criteria
</asp:TableHeaderCell>
</asp:TableHeaderRow>
<asp:TableRow>
<asp:TableCell>
Category:<br /><asp:TextBox Id="category" MaxLength="32" WIDTH="130"
runat="server"/>
</asp:TableCell>
<asp:TableCell>
State:<br /><aspropDownList style="width: 99%" Id="state"
runat="server"></aspropDownList>
</asp:TableCell>
<asp:TableCell>
<asp:Button Id="button_submit" Text="Go" OnClick="OnClick_Select"
runat="server" />
</asp:TableCell>
</asp:TableRow>
</asp:table>
I tried the following code in my skin file:
<asp:table runat="server" SkinID="searchBoxTable" CssClass="searchBox"
borderwidth="0" cellspacing="2">
<asp:TableHeaderRow>
<asp:TableHeaderCell style="height:16px">
</asp:TableHeaderCell>
</asp:TableHeaderRow>
<asp:TableRow style="height:40px" CssClass="searchRow">
<asp:TableCell style="width: 130px" VerticalAlign="bottom" align="left">
</asp:TableCell>
</asp:TableRow>
</asp:table>
If i specify it for the page as a Theme, the table is rendered empty (the
table is rendered exactly as specified in the skin), if use it as a
styleSheetTheme, the rows and the cells are rendered twice - once like they
were coded in the page, and another time empty - but with the styles
specified in the skin.
Any ideas on how to keep the data specified in the page, but have the style
be based on the skin (specify layout attributes)? Any examples of such code?
thanks
tony
time making specifying the display properties in the skin file.
My code on the page looks like:
<asp:table runat="server" SkinID="searchBoxTable">
<asp:TableHeaderRow>
<asp:TableHeaderCell ColumnSpan="3">
Selection Criteria
</asp:TableHeaderCell>
</asp:TableHeaderRow>
<asp:TableRow>
<asp:TableCell>
Category:<br /><asp:TextBox Id="category" MaxLength="32" WIDTH="130"
runat="server"/>
</asp:TableCell>
<asp:TableCell>
State:<br /><aspropDownList style="width: 99%" Id="state"
runat="server"></aspropDownList>
</asp:TableCell>
<asp:TableCell>
<asp:Button Id="button_submit" Text="Go" OnClick="OnClick_Select"
runat="server" />
</asp:TableCell>
</asp:TableRow>
</asp:table>
I tried the following code in my skin file:
<asp:table runat="server" SkinID="searchBoxTable" CssClass="searchBox"
borderwidth="0" cellspacing="2">
<asp:TableHeaderRow>
<asp:TableHeaderCell style="height:16px">
</asp:TableHeaderCell>
</asp:TableHeaderRow>
<asp:TableRow style="height:40px" CssClass="searchRow">
<asp:TableCell style="width: 130px" VerticalAlign="bottom" align="left">
</asp:TableCell>
</asp:TableRow>
</asp:table>
If i specify it for the page as a Theme, the table is rendered empty (the
table is rendered exactly as specified in the skin), if use it as a
styleSheetTheme, the rows and the cells are rendered twice - once like they
were coded in the page, and another time empty - but with the styles
specified in the skin.
Any ideas on how to keep the data specified in the page, but have the style
be based on the skin (specify layout attributes)? Any examples of such code?
thanks
tony