Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 13th, 2008, 03:07 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

I think firefox "disables" this functionality. basically it will show in the address bar the path in the href
so the way around this is to put the text in the href but obviously you are using your href to navigate so it won't work...

see this site i found: http://www.webmasterworld.com/html/3300725.htm

Jason Hall
 
Old August 13th, 2008, 03:09 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Oh yeah, that was the first think I checked.. I have enabled access to the status bar in FF..

Rob
http://cantgrokwontgrok.blogspot.com
 
Old August 13th, 2008, 03:09 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

acutally they make a better suggestion at the bottom of the page which i feel stupid for not even thinking of

Why not use a tooltip instead of the status bar?

Jason Hall
 
Old August 13th, 2008, 03:11 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

There may be more to it.. Who knows? I was just curious.. I'd rather less people did this anyway! ;)

Rob
http://cantgrokwontgrok.blogspot.com
 
Old August 13th, 2008, 03:13 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Or use javascript onmouseover to set the inner html for a literal control? You will have all the control over formatting as well then?
I think this would be the most preferable option would it not?

Rob
http://cantgrokwontgrok.blogspot.com
 
Old August 13th, 2008, 03:14 PM
Registered User
 
Join Date: Jul 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by robzyc
 Hi There,

Just thought I would get in on this too.. I cant seem to get the code to work properly either.. I'm not even getting a status in IE?!

Rob
http://cantgrokwontgrok.blogspot.com
Hi rob,
Even I got it working in IE only when I added the attributes (Attributes.Add) for each control one after the other in the code.


http://forums.mozillazine.org/viewto...st=0&sk=t&sd=a




 
Old August 13th, 2008, 03:18 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

I think the tooltip would be the cleanest and easiest way to do this but at least you have options...


     foreach (Control ctrl in Page.Controls)
        {
            if (ctrl is LinkButton)
            {
                ((LinkButton)(ctrl)).ToolTip = "Browse Catalog";
            }
         }


Jason Hall
 
Old August 13th, 2008, 03:18 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Well, like I said, I have done that, and it doesnt seem to work here. So wether or not there are some security settings overriding it, I dont know.
My point was that I was not going to spend more than 5 mins on it because I dont like the behaviour, this sort of thing is being disabled for a reason :)

Rob
http://cantgrokwontgrok.blogspot.com
 
Old August 13th, 2008, 03:21 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

@alliancejhall - remember though, tooltips have a delay before they appear.. There may become a need to have control over the formatting and the like.. Added to which another problem with the status bar (not your suggestion) is that you cannot guarantee that the user even has it visible..

This is precisely why browsers are disabling access to the status bar.. Its not "webby" behaviour..

Rob
http://cantgrokwontgrok.blogspot.com
 
Old August 13th, 2008, 03:23 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

that is true... either way there are downfalls to all 3 suggestions so i guess it's all on how much you really need it and what you want it to do or look like....

Jason Hall





Similar Threads
Thread Thread Starter Forum Replies Last Post
Iterating through DropDownBox rsearing ASP.NET 2.0 Basics 8 January 3rd, 2007 04:35 PM
filtering datalist with linkbuttons pettrer ASP.NET 2.0 Basics 0 July 8th, 2006 03:46 PM
DataGrid LinkButtons/Pushbuttons testsubject General .NET 0 June 27th, 2006 02:46 AM
Iterating Fonts Ron Howerton Visual Basic 2005 Basics 9 May 31st, 2006 07:15 PM
LinkButtons Alaric VS.NET 2002/2003 1 November 7th, 2003 01:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.