473,329 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,329 software developers and data experts.

How to customize web part title bar?

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
Feb 6 '06 #1
6 5573
DWS
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

"Zhenzhong Xu" wrote:
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

Feb 7 '06 #2
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

"DWS" wrote:
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

"Zhenzhong Xu" wrote:
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

Feb 7 '06 #3
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

"DWS" wrote:
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

"Zhenzhong Xu" wrote:
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

Feb 7 '06 #4
DWS
Zhenzhong,
Good Job,
Build a control and use the url picker comes to mind.

DWS

"Zhenzhong Xu" wrote:
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

"DWS" wrote:
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

"Zhenzhong Xu" wrote:
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

Feb 7 '06 #5
DWS
Lots of properties in webparts easy for me to get switched up. Glad you
found it.

"Zhenzhong Xu" wrote:
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

"DWS" wrote:
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

"Zhenzhong Xu" wrote:
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

Feb 7 '06 #6
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

"DWS" wrote:
Zhenzhong,
Good Job,
Build a control and use the url picker comes to mind.

DWS

"Zhenzhong Xu" wrote:
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

"DWS" wrote:
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

"Zhenzhong Xu" wrote:

> 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

Feb 7 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Irene | last post by:
Hi, I would like to modify the text within an html title tag based upon a value read from the registry (or the existence of a certain file). For example, if a certain registry value is equal...
3
by: Chris Kilmer | last post by:
I would like to be able to customize the path structure that VS.NET 2003 creates for projects. 1. I'd like to be able to create a project without VS.NET creating a folder for that project. ...
0
by: Google Mike | last post by:
On Linux, I need to ask what your favorite installation options are for a PHP app as a kind of poll. In Part 1, I discussed the Install Wizard preference that you might have. In Part 2, here, I'm...
3
by: DexHex | last post by:
Hi, I am stumpt. Is there anyway to set the background image on a webpart title?
1
by: Jav | last post by:
Asp.Net 2.0 When I drag a Multiview control from the ToolBox onto a WebPartZone, The MultiView displays a title of Untitled immediately above the Multiview title bar. When I show the form in the...
6
by: vijai.kalyan | last post by:
Hello, I wrote a trivial program to set the console title in a console application. Here is the code:- namespace myns { class SetTitle { static void Main ( string args )
2
by: AlaQunaibi | last post by:
How can I Change Icon in Browser Title Bar using JavaScript? ]
4
by: Michael | last post by:
I am considering building my WebForm page using Web Parts, so that my users can customize Web application's user interface. Is there any good information on it? or step by step demo?
1
by: Alex Shulman | last post by:
I develop a C# application with Visual Studio .NET 2008. I customize the icon and title for my application form in runtime and it works fine: I can see correct icon and title in the status bar as...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.