CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/21/2006 12:29:36 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 36 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
kka
Asp.Net User
How to make the url in the statusbar to disapear?3/21/2006 12:29:36 PM

0/0

In teh old days I made a javascript to override the output to the statusbar when I wanted the text of the statusbar to remain empty. But in Visual Studio 2005 I dont get as much manual control when I implement an automatic menu. How can I achieve to keep the statusbar empty whenever I press a link  in a automatic generated menu?
jminond
Asp.Net User
Re: How to make the url in the statusbar to disapear?3/21/2006 5:55:45 PM

0/0

YOu will want to look into the MenuItemDataBound(object sender, MenuEventArgs e) Event.

This will alloow you to control the text written to each individual element, and you can put your javascript there. persoanlly, as a user, i would rather see the links in the status bar... but there is a reason for aeverything i suppose.

anyway, in yor event....

SiteMapNode sn = (SiteMapNode)e.Item.DataItem;

e.Item.ToolTip = sn.Description;   // will give you a tooltip for example

e.Item.Text = "<span class='mItem'>" + output + "</span>";  // writes a span with a css class,  you can easily control you link and mosueovers, clicks and javascripts in the same manner.

 

 


Jonathan Minond
http://www.Jonavi.com
http://www.jonavi.com/Default.aspx?pageID=21
http://RainbowBeta.com
http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
http://dotnetslackers.com/community/blogs/jminond/default.aspx
kka
Asp.Net User
Re: How to make the url in the statusbar to disapear?3/22/2006 7:31:59 AM

0/0

I tried to implement the example but when I run it everything seems like it used to.

I don't see any reference to the statusbar either...or is it just me?

jminond
Asp.Net User
Re: How to make the url in the statusbar to disapear?3/22/2006 11:56:42 AM

0/0

I didn't reference the status bar... I gave you a sample of how to control the html and text generated by yor asp.net menu.

YOu have to tie into the html to add your javascript to shut of the status bar.

so where i have <span class.......

you might have onmouseover='window.status...... etc.... My point was to look into the menu item databind, and see how you work with the elements, to achieve yo desired goal.

Sorry if that was not clear.


Jonathan Minond
http://www.Jonavi.com
http://www.jonavi.com/Default.aspx?pageID=21
http://RainbowBeta.com
http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
http://dotnetslackers.com/community/blogs/jminond/default.aspx
kka
Asp.Net User
Re: How to make the url in the statusbar to disapear?3/23/2006 8:03:09 AM

0/0

No problem.

But I'm new in this Visual Studio 2005 so I don't know much about it. That's why I'd like a complete example and "how to". I've tried implementing this code:

protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)

{

SiteMapNode sn = (SiteMapNode)e.Item.DataItem;

e.Item.ToolTip = sn.Description; // will give you a tooltip for example

e.Item.Text = "<OnMenuItemClick=window.status='custom text'>"; // writes a span with a css class, you can easily control you link and mosueovers, clicks and javascripts in the same manner.

}

But it doesn't work. I guess I misunderstood something. Do you by any change have a complete example of how to achieve my goal?

jminond
Asp.Net User
Re: How to make the url in the statusbar to disapear?3/23/2006 12:14:11 PM

0/0

I am not sure what this is "<OnMenuItemClick=window.status='custom text'>

that is not an HTML element, or javascript or anything, and that has nothing to do with VS 2005 or .NET 2.0 it has to do with HTML, Javascript.

I have not tried to implement exactlyu what you are trying to do, somthing more like  onMouseOver="window.status='custom text!'; return true" or

onclick="window.status='custom text!'; return true"

but these are attributes for your link, not HTML elements. so in your

MenuItemDataBound(object sender, MenuEventArgs e)

you should have something allong the lines of  finding the link

foreach(Control ctrl in e.Item.Controls)

{

if(e.Item.Controls[0].GetType().ToString() == "System.Web.UI.WebControls.HyperLink")

{

e.Item.Controls[0].Attributes.Add("onClick", "window.status='custom text!'; return true");

break;

}

}

You may have to play around and debug a bit, or move things around, there also might be a better way to do this, but more or less i think that is what you need to do.

Have a look at this blog post by dannychen about custom attributes in navigation contrls:

http://weblogs.asp.net/dannychen/archive/2005/03/28/396099.aspx

 


Jonathan Minond
http://www.Jonavi.com
http://www.jonavi.com/Default.aspx?pageID=21
http://RainbowBeta.com
http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
http://dotnetslackers.com/community/blogs/jminond/default.aspx
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Macromedia Dreamweaver MX 2004 Killer Tips: The Hottest Collection of Cool Tips and Hidden Secrets for Dreamweaver Authors: Joseph Lowery, Angela C. Buraglia, Pages: 249, Published: 2003
Dreamweaver MX Killer Tips Authors: Joseph W. Lowery, Angela C. Buraglia, Pages: 0, Published: 2002
Just Enough Web Programming with XHTML, PHP, and MySQL Authors: Guy W. Lecky-Thompson, Pages: 432, Published: 2008
Web Developer.com Guide to Building Intelligent Web Sites with JavaScript: A Complete Resource for Creating Websites That Think! Authors: Nigel Ford, Pages: 340, Published: 1998

Web:
Firefox 3 Beta 5 - Statusbar Tooltips appear and then disappear ... To make this topic appear first, remove this option from another topic. ... Tooltips appear when hovering over statusbar icons but then disappear ...
Firefox/Feature Brainstorming:Statusbar - MozillaWiki I agree the statusbar is very useful, mainly for seeing the URL of a link (so ... Letting the status bar disappear automatically would be a great grief to ...
MBlue Nav-Style Statusbar Vista | userstyles.org If you have Stylish already, make sure you're using the latest ... it makes the statusbar progress bar's progress meter on my disappear. ...
[Ext] Fission 0.8.9 [Sep 25] • mozillaZine Forums if you could make the titlebar disappear and pop up in the url bar as a popup ... edge or at end of bar --whatever--the old enhanced statusbar ext. had it ...
lost status bar and quick launch bar - SillyDog701 Message Centre Just the bar with start,clock, I think it's called the task bar and status bar. It would disappear and that part of screen would just be ...
/var/www/www.irssi.org-old/scripts/html/centericq.pl You'll need to swap windows to make 27 # the statusbar item disappear if you've read the messages. 28 # - You have to reload the script if you add new ...
Omar Shahine's WebLog : Explorer Status Bar fixed in XP SP2 We also fixed most of the scenarios where the URL you were typing in the ... that status bar back on only to have it disappear for no apparent reason. ...
KDE Wiki : KOrganizer and the MS Exchange plug-in Once you can display Outlook Web Access in Konqueror, make a note of the link to your Inbox. You can see the correct URL in Konqueror's status bar, ...
Aqua status bar software by Nina Ivanova and others Choose between over 50 premade designs, or make your own design. ... Get) program creates JavaScript and HTML code to open an URL in a new (PopUp) window. ...
IE custom icons disappear - Vista Help I see "javascript:fnNewReply()" in the status bar when the mouse is over the .... Try using this method to make a IE7 Favorites URL shortcut instead. ...




Search This Site:










maintain parent item hover style while in submenu

moving arrow icon in menu control

css files

microsoft (menu) server control source code?

page title and master pages

unable to get checked nodes in my treeview

wizard control finishbuttonclick event

skinid property

help needed to skin a menu

master page login control ontextchanged

showing an external url inside a contentplaceholder.

navigating from masterpage

working code for image upload stops working if used with master page

is there a tool for building skin files?

issue with spacing in dynamicmenuitem

how do i create an asp.net website template for new sites that use my masterpage?

manually setting the selectednode property for the treeview control

switching profile themes using css menu and <a href> tags

treeview server control

how do i use the style property of a htmlgeneric control

menu control - changing the appearance of the top node to buttons

want the menu to show only authorized pages

navigation menu not uploading to hostsite

div to the left of contentplaceholder , is it possible?!

space abov

ms crm / outlook web. statically positioned, dynamic menu selection. how is this done?

what about treeview control support in asp.net?

help with maintainscrollpositiononpostback on a dedicated secure server ssl

web.sitemap and url query parameters

using masterpages w/o serverside form tag

  Privacy | Contact Us
All Times Are GMT