By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,122 Members | 1,559 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,122 IT Pros & Developers. It's quick & easy.

Setting the background image on a webpart title

P: n/a
Hi,
I am stumpt. Is there anyway to set the background image on a webpart
title?
Dec 5 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi DexHex,

Welcome to ASPNET newsgroup.
Regarding on the setting background image on a webpart title question you
mentioned, based on my understanding, since the Web Part Title's style
setting is configured at WebpartZone level, so we can customize a certain
WebpartZone's PartTitleStyle and add that webpart into the Zone... The
ASP.NET WebpartZone's "PartTitleStyle" property has the "CssClass" sub
property which can help specify a css class, so we can define the
background image in the css class, for example:

=====WebPartZone template define=======

<asp:WebPartZone>
<PartTitleStyle CssClass="MyPartTitle" />
</asp:WebPartZone>

===========css class define============
<style type="text/css">
.MyPartTitle { background-image: url(Images/titlebar.gif) }
}
</style>
================

Thus, all the webparts added in the WebPartZone will has the specified
image as the background image.....

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



--------------------
| From: "DexHex" <De****@newsgroups.nospam>
| Subject: Setting the background image on a webpart title
| Date: Mon, 5 Dec 2005 14:23:47 -0600
| Lines: 5
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| Message-ID: <u0*************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: dantes143.doded.mil 214.3.114.143
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:362850
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
| I am stumpt. Is there anyway to set the background image on a webpart
| title?
|
|
|

Dec 6 '05 #2

P: n/a
I use
PartTitleStyle-CssClass="parttitle"

and in the css I do

td.parttitle
{
...
background-image: url(../images/barbg.gif);
...
}

Dec 6 '05 #3

P: n/a
Hi DexHex,

Does the things in my last reply helps a little? If there're anything else
we can help, please feel free to post here.

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.)
--------------------
| X-Tomcat-ID: 126506682
| References: <u0*************@TK2MSFTNGP12.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Tue, 06 Dec 2005 07:00:02 GMT
| Subject: RE: Setting the background image on a webpart title
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <qu*************@TK2MSFTNGXA02.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 50
| Path: TK2MSFTNGXA02.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:362958
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi DexHex,
|
| Welcome to ASPNET newsgroup.
| Regarding on the setting background image on a webpart title question you
| mentioned, based on my understanding, since the Web Part Title's style
| setting is configured at WebpartZone level, so we can customize a certain
| WebpartZone's PartTitleStyle and add that webpart into the Zone... The
| ASP.NET WebpartZone's "PartTitleStyle" property has the "CssClass" sub
| property which can help specify a css class, so we can define the
| background image in the css class, for example:
|
| =====WebPartZone template define=======
|
| <asp:WebPartZone>
| <PartTitleStyle CssClass="MyPartTitle" />
| </asp:WebPartZone>
|
| ===========css class define============
| <style type="text/css">
| .MyPartTitle { background-image: url(Images/titlebar.gif) }
| }
| </style>
| ================
|
| Thus, all the webparts added in the WebPartZone will has the specified
| image as the background image.....
|
| Hope helps. Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
|
|
|
|
|
|
| --------------------
| | From: "DexHex" <De****@newsgroups.nospam>
| | Subject: Setting the background image on a webpart title
| | Date: Mon, 5 Dec 2005 14:23:47 -0600
| | Lines: 5
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| | Message-ID: <u0*************@TK2MSFTNGP12.phx.gbl>
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | NNTP-Posting-Host: dantes143.doded.mil 214.3.114.143
| | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| | Xref: TK2MSFTNGXA02.phx.gbl
| microsoft.public.dotnet.framework.aspnet:362850
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| |
| | Hi,
| | I am stumpt. Is there anyway to set the background image on a webpart
| | title?
| |
| |
| |
|
|

Dec 8 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.