ASP .NET - How to customize web part title bar / WebPart Chrome

Has there ever been anything so hard - but then again so easy?

You would think that this would be easier -

After much research I have come to the conclusion that there is no easy way to just set a property of a WebPart Title area and set the background to use an image.

It looks like to me that Microsoft left out a Property for the title area background image.

You would think that this would be easier - I can almost bet that Microsoft has had numerous request to add it.

I resulted to using a style sheet class

    <style type="text/css">
        .CoolBar {
         background-image :url(images/sweetBar.gif);
        }
    </style>

  <PartTitleStyle CssClass="CoolBar" BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.8em" ForeColor="White" />

Other Links of Interest on Webparts / Web Parts

http://www.phptr.com/articles/article.asp?p=703789&seqNum=2&rl=1

posted @ Sunday, June 24, 2007 12:24 AM

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
Please add 4 and 1 and type the answer here:
 

Live Comment Preview:

 
«March»
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910