Saturday, March 24, 2012

Setting the background image on a webpart title

Hi,
I am stumpt. Is there anyway to set the background image on a webpart
title?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" <DexHex@.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: <u0mOFnd#FHA.140@.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!TK2MSFTNGP12.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?
|
|
|
I use
PartTitleStyle-CssClass="parttitle"
and in the css I do
td.parttitle
{
..
background-image: url(../images/barbg.gif);
..
}
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: <u0mOFnd#FHA.140@.TK2MSFTNGP12.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: stcheng@.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: <qu9G2Kj#FHA.832@.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" <DexHex@.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: <u0mOFnd#FHA.140@.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!TK2MSFTNGP12.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?
| |
| |
| |
|
|

0 comments:

Post a Comment