473,583 Members | 3,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5586
DWS
Zhenzhong,

Titleimageurl is used to customize web part title bar. A user with rules
enterSharedStat e, modifyState can use the behavioreditor at runtime and set
the titleimageurl for all users or the developer can set the webpart
titleimageurl programatically .
me.titleimageur l = "~/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 "TitleImage Url" 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:WebPartZon e ID="WebPartZone 1" runat="server" BorderColor="#C CCCCC"
Font-Names="Verdana" Height="131px" Padding="6" Width="312px"
PartChromeType= "TitleAndBorder ">
<ZoneTemplate >
<asp:Label
TitleImageUrl=" ./Images/hdr_Wellness.jp g" ID="Label1" runat="server"
Text="Hello"></asp:Label>
</ZoneTemplate>
<PartChromeStyl e BackColor="#F7F 6F3"
BorderColor="#E 2DED6" Font-Names="Verdana" ForeColor="Whit e" />
<MenuLabelHover Style ForeColor="#E2D ED6" />
<EmptyZoneTextS tyle Font-Size="0.8em" />
<MenuLabelSty le ForeColor="Whit e" />
<MenuVerbHoverS tyle BackColor="#F7F 6F3"
BorderColor="#C CCCCC" BorderStyle="So lid"
BorderWidth="1p x" ForeColor="#333 333" />
<HeaderStyle Font-Size="0.7em" ForeColor="#CCC CCC"
HorizontalAlign ="Center" />
<MenuVerbStyl e BorderColor="#5 D7B9D"
BorderStyle="So lid" BorderWidth="1p x" ForeColor="Whit e" />
<PartStyle Font-Size="0.8em" ForeColor="#333 333" />
<TitleBarVerbSt yle Font-Size="0.6em"
Font-Underline="Fals e" ForeColor="Whit e" />
<MenuPopupSty le BackColor="#5D7 B9D"
BorderColor="#C CCCCC" BorderWidth="1p x" Font-Names="Verdana"
Font-Size="0.6em" />
<PartTitleSty le BackColor="#5D7 B9D" Font-Bold="True"
Font-Size="0.8em" ForeColor="Whit e" />
</asp:WebPartZone >

Thanks a lot in advance.

Zhenzhong

"DWS" wrote:
Zhenzhong,

Titleimageurl is used to customize web part title bar. A user with rules
enterSharedStat e, modifyState can use the behavioreditor at runtime and set
the titleimageurl for all users or the developer can set the webpart
titleimageurl programatically .
me.titleimageur l = "~/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 "TitleIconImage Url", 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
enterSharedStat e, modifyState can use the behavioreditor at runtime and set
the titleimageurl for all users or the developer can set the webpart
titleimageurl programatically .
me.titleimageur l = "~/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 "TitleIconImage Url", 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
enterSharedStat e, modifyState can use the behavioreditor at runtime and set
the titleimageurl for all users or the developer can set the webpart
titleimageurl programatically .
me.titleimageur l = "~/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 "TitleIconImage Url", 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
enterSharedStat e, modifyState can use the behavioreditor at runtime and set
the titleimageurl for all users or the developer can set the webpart
titleimageurl programatically .
me.titleimageur l = "~/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 "TitleIconImage Url", 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
enterSharedStat e, modifyState can use the behavioreditor at runtime and set
the titleimageurl for all users or the developer can set the webpart
titleimageurl programatically .
me.titleimageur l = "~/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
2972
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 to 1 then the title should be <title>blah blah App1</title> otherwise the title should be <title>blah blah App2</title>. Could someone recommend a...
3
1739
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. I've already created a folder where I want the project to go, however, VS.NET won't use the existing folder, it wants to create it's own. 2. I also...
0
1197
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 trying to decide which options you prefer for the Database Configuration. Consider SugarCRM. It's really an SDK that you customize. Knowing that,...
3
4729
by: DexHex | last post by:
Hi, I am stumpt. Is there anyway to set the background image on a webpart title?
1
1507
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 browser, the word Untitled displays again above the View that I placed in the Multiview. How can I get rid of it or change it to something...
6
4888
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
1996
by: AlaQunaibi | last post by:
How can I Change Icon in Browser Title Bar using JavaScript? ]
4
1239
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
1254
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 well as form itself when opening the application. Here is the problem: When I open "help" dialog or any other form from my application, then the...
0
8184
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7936
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5375
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3845
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1434
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1158
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.