Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

How to customize web part title bar?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zhenzhong Xu - 06 Feb 2006 21:26 GMT
I am using ASP 2.0 and trying to put a image in the web part title bar
instead of using a text title. Is there any way to get this done?

Thanks in advance.

Zhenzhong
DWS - 07 Feb 2006 14:27 GMT
Zhenzhong,

Titleimageurl is used to customize web part title bar.  A user with rules
enterSharedState, modifyState can use the behavioreditor at runtime and set
the titleimageurl for all users or the developer can set the webpart
titleimageurl programatically.
me.titleimageurl = "~/images/zany01.gif"

Good Luck
DWS
Need more help with this reply to group or thread

> I am using ASP 2.0 and trying to put a image in the web part title bar
> instead of using a text title. Is there any way to get this done?
>
> Thanks in advance.
>
> Zhenzhong
Zhenzhong Xu - 07 Feb 2006 15:21 GMT
Thanks for your reply. I tried to add the "TitleImageUrl" attribute into the
asp code, but it doesnt seem to work properly. and I dont seem to be able to
find the attribute for any of the controls. Can you be a little more specific?

<asp:WebPartZone ID="WebPartZone1" runat="server" BorderColor="#CCCCCC"
Font-Names="Verdana" Height="131px" Padding="6" Width="312px"
PartChromeType="TitleAndBorder">
                       <ZoneTemplate>
                           <asp:Label
TitleImageUrl="./Images/hdr_Wellness.jpg" ID="Label1" runat="server"  
Text="Hello"></asp:Label>
                       </ZoneTemplate>
                       <PartChromeStyle BackColor="#F7F6F3"
BorderColor="#E2DED6" Font-Names="Verdana" ForeColor="White" />
                       <MenuLabelHoverStyle ForeColor="#E2DED6" />
                       <EmptyZoneTextStyle Font-Size="0.8em" />
                       <MenuLabelStyle ForeColor="White" />
                       <MenuVerbHoverStyle BackColor="#F7F6F3"
BorderColor="#CCCCCC" BorderStyle="Solid"
                           BorderWidth="1px" ForeColor="#333333" />
                       <HeaderStyle Font-Size="0.7em" ForeColor="#CCCCCC"
HorizontalAlign="Center" />
                       <MenuVerbStyle BorderColor="#5D7B9D"
BorderStyle="Solid" BorderWidth="1px" ForeColor="White" />
                       <PartStyle Font-Size="0.8em" ForeColor="#333333" />
                       <TitleBarVerbStyle Font-Size="0.6em"
Font-Underline="False" ForeColor="White" />
                       <MenuPopupStyle BackColor="#5D7B9D"
BorderColor="#CCCCCC" BorderWidth="1px" Font-Names="Verdana"
                           Font-Size="0.6em" />
                       <PartTitleStyle BackColor="#5D7B9D" Font-Bold="True"
Font-Size="0.8em" ForeColor="White" />
                   </asp:WebPartZone>

Thanks a lot in advance.

Zhenzhong

> Zhenzhong,
>
[quoted text clipped - 14 lines]
> >
> > Zhenzhong
Zhenzhong Xu - 07 Feb 2006 15:29 GMT
Never mind, I figured it out, the attribute is named "TitleIconImageUrl", but
here comes another problem, I cannot seem to be able to drag and drop from
grabbing the image. Is there a workaround for this?

Zhenzhong

> Zhenzhong,
>
[quoted text clipped - 14 lines]
> >
> > Zhenzhong
DWS - 07 Feb 2006 15:46 GMT
Zhenzhong,
Good Job,
Build a control and use the url picker comes to mind.

DWS

> Never mind, I figured it out, the attribute is named "TitleIconImageUrl", but
> here comes another problem, I cannot seem to be able to drag and drop from
[quoted text clipped - 20 lines]
> > >
> > > Zhenzhong
Zhenzhong Xu - 07 Feb 2006 16:05 GMT
Thanks, I got this done by using a CSS style sheet and set the actual image
as the background. it works like a charm :)

Zhenzhong

> Zhenzhong,
> Good Job,
[quoted text clipped - 26 lines]
> > > >
> > > > Zhenzhong
Yang - 04 Aug 2007 15:04 GMT
How did you do that? you don't use Titleiconimageurl,do you? Since that
property only puts a icon in the front of text title? I assume you need a
image to cover all title bar.

> Thanks, I got this done by using a CSS style sheet and set the actual image
> as the background. it works like a charm :)
[quoted text clipped - 31 lines]
> > > > >
> > > > > Zhenzhong
DWS - 07 Feb 2006 16:02 GMT
Lots of properties in webparts easy for me to get switched up.  Glad you
found it.

> Never mind, I figured it out, the attribute is named "TitleIconImageUrl", but
> here comes another problem, I cannot seem to be able to drag and drop from
[quoted text clipped - 20 lines]
> > >
> > > Zhenzhong

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.