473,508 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Menu Image

Hi Gang,

Does anyone know how to insert an image next to the text of a dynamic menu
item in the Asp.Net 2.0 menu control?

Thanks.

Steve
Nov 26 '06 #1
2 1380
Hi Uriah Piddle,

Its very simple. If you creating Menu in designer. Go to Item
Collection and then
Specify the ImageUrl Property of a menu item.
And to more customize you have DynamicMenuStyle, DynamicMenuItemStyle,
DynamicHoverStyle etc.
And if you are creating menu in code then

MenuItem mnitem = new MenuItem("Menu Item", -1,
"http://localhost/myimage.gif");

will do the job.

But if you are populating Menu item from datasource. You need to
customize menu item in MenuItemDataBound event.

Thanks
Md. Masudur Rahman
www.kaz.com.bd
KAZ Software Ltd.
Software outsourcing made simple...
Uriah Piddle wrote:
Hi Gang,

Does anyone know how to insert an image next to the text of a dynamic menu
item in the Asp.Net 2.0 menu control?

Thanks.

Steve
Nov 27 '06 #2
Thanks Masudur.
Nov 27 '06 #3

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

Similar topics

4
1748
by: Lynn Morrison | last post by:
I cannot find this feature at all. There is no bitmap property for menu items nor is there an imagelist property for the menu itself... How do I put images to the left of menu items? Thanks, ...
2
5814
by: H | last post by:
is it possible to add a background image to the menu items? I can add an image, but it displays on top of the text of the menu items. How can I add the image and still have the text in the...
1
12004
by: sthrudel | last post by:
Hello! I'm programmatically inserting a navigation asp menu to a page, like this: // Create new Menu Menu menu = new Menu(); // Create new MenuItem MenuItem mainItem = new MenuItem();
3
2085
by: John | last post by:
Hi there, I was reading an article (http://avenuea-razorfish.com/articles/TheAll-MenuNavigation_Turbek.pdf) on 'all-menu navigation' and I'd like to try and implement this in my site. Can...
1
2250
by: ColorWorld | last post by:
Hi there I am setting up a menu. It is an "button" with roll over function. The background image changes. That works fine :) But: underneath is an image. Each menu item has its own image AND i...
1
3672
by: Carl Gilbert | last post by:
Hi Could someone please advise on the best method to achieve the following. I want a flat menu which uses images rather than text for each menu item. All items will have the same image...
5
1538
by: sindhu | last post by:
Hello, I want to use Images as menu and menu items using javascript.The aim is that i have images with the menu items. when i click the image on that perticular mmenu item i want an image to be...
3
2050
by: sudhashekhar30 | last post by:
hi all i want to use css file for menu design purpose. i want to display image for every button menu with different menu item. i am giving image path in css file. its showing image. but don't...
16
4905
by: stevedude | last post by:
CSS newbie again. I have a problem trying to get coffee mug images within anchor tags to center with my link text for a vertical list menu. If I use the horizontal/vertical properties of...
0
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7342
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,...
0
7410
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...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5650
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,...
0
4729
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...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
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 ...
0
440
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...

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.