Hi Brian,
As for the problem that "setting back ground image for a ASP.NET Table 's
TableRow or TableCell", I think we need to set it by code:
Every ASP.NET Server Control has encapsulated its related HtmlControl's
Attributes and Css Sytle as two Collectons
"Attributes" and "Style" collections, since in Html table element we use
the following means to set background image:
<TR style="BACKGROUND-IMAGE:
url(
http://support.microsoft.com/library/images/support/bnr_microsoft.gif)">
background="
http://support.microsoft.com/library/images/support/bnr_microsof
t.gif">fsdfds</TD>
Then, in ASP.NET Table control we can use the following code to specify the
background image:
aspTable.Rows[0].Style.Add("BACKGROUND-IMAGE","url(images/tr.gif)");
aspTable.Rows[0].Cells[0].Style.Add("BACKGROUND-IMAGE","url(
http://support.m
icrosoft.com/library/images/support/bnr_microsoft.gif)");
aspTable.Rows[0].Cells[0].Attributes.Add("background","
http://support.micros
oft.com/library/images/support/bnr_microsoft.gif");
In addition, here are the reference on ASP.NET server control's attributes
an sytles collections in MSDN:
#AttributeCollection Members
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebUIAttribute
CollectionMembersTopic.asp?frame=true
#ASP.NET Server Controls and CSS Styles
http://msdn.microsoft.com/library/en-us/vbcon/html/vbconwebformscontrolscsss
tyles.asp?frame=true
#Customizing the Appearance of ASP.NET Server Controls Using Styles
http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskcustomizingcontrolap
pearanceusingstyles.asp?frame=true
Hope also help.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx