CodeVerge.Net Beta


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

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 7/20/2007 3:52:10 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 51 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
ahsteele
Asp.Net User
TreeView ImageTooltip7/20/2007 3:52:10 PM

0/0

I hope that I have not exhuasted all of the good will on this forum with my last spouting of idiocy.

I am suprise, suprise still working on a TreeView.  I was just wondering why in the TreeViewAdapter class the WriteNodeImage method did not use the ImageToolTip property for setting the alt text for the image.  Setting the the ToolTip property for the TreeNode will cause the appropriate alt text to be rendered, but it seems that the ImageToolTip property would be the more appropriate.  Suggestion below:

// present code:
writer.WriteAttribute("alt", !String.IsNullOrEmpty(item.ToolTip) ? item.ToolTip : (!String.IsNullOrEmpty(treeView.ToolTip) ? treeView.ToolTip : item.Text));

// possible change:
writer.WriteAttribute("alt", !String.IsNullOrEmpty(item.ImageToolTip) ? item.ImageToolTip : !String.IsNullOrEmpty(item.ToolTip) ? item.ToolTip : (!String.IsNullOrEmpty(treeView.ToolTip) ? treeView.ToolTip : item.Text));

Thoughts?  I could still be a moron. :)

Russ Helfand
Asp.Net User
Re: TreeView ImageTooltip7/20/2007 5:12:04 PM

0/0

I haven't encountered any morons or moronic questions/comments on this forum. Certainly you are no dummy or moron. Your idea (above) is excellent. It has a very nice fallback of using the ToolTip if the author hasn't set the ImageToolTip.

Why wasn't this done originally? Because I didn't think of it. I'm glad that you did!

All enhancements at this point being added via the CodePlex community-driven project at http://www.codeplex.com/cssfriendly. Are you interested in joining that effort? If so, I think the right procedure is to go to the CodePlex site, sign up for an account (if you don't already have one), and submit a request to be added as a dev to the team. Or... you can contact Brian via http://www.codeplex.com/UserAccount/UserProfile.aspx?UserName=bdemarzo. Sometimes he likes to work one-on-one with prospective contributors for their first few contributions before turning them loose on the code in a freer fashion.

Thanks for helping. Even if you choose not to add this to the CodePlex source code I'm sure that this posting will eventually be found by authors like you who wanted this behavior... and your posted solution should be quite helpful to them.


Russ Helfand
Groovybits.com
ahsteele
Asp.Net User
Re: TreeView ImageTooltip7/20/2007 7:38:44 PM

0/0

I sent Brian a message on the CodePlex site.  Thanks for the feedback! 

bdemarzo
Asp.Net User
Re: TreeView ImageTooltip7/20/2007 8:22:42 PM

0/0

The change has been added to the CodePlex site. Thanks!

Future changes can be submitted using CodePlex's "patch" feature.

 


- brian
- blog: www.sidesofmarch.com
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Build Your Own ASP.NET 2.0 Web Site Using C# & VB: The Ultimate ASP.NET Begginner's Guide Authors: Cristian Darie, Zak Ruvalcaba, Pages: 689, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
ASP.NET 2.0 Black Book: black book Authors: Dreamtech Software, Dreamtech Software, Charul Shukla, Anil Kumar Barnwal, Dreamtech Software India, Pages: 1167, Published: 2006
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Microsoft Visual C# 2005 Unleashed Authors: Kevin Hoffman, Pages: 692, Published: 2006
ASP.net 3.5 mit Visual C# 2008 Programmieren: Grundlagen, Programmiertechniken, Datenbanken Authors: Tobias Hauser, Jürgen Kotz, Christian Wenz, Tobias Hauser, Karsten Samaschke, Jürgen Kotz, Karsten Samaschke, Christian Wenz, Pages: 1168, Published: 2008
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007

Web:
TreeView ImageTooltip - ASP.NET Forums ImageToolTip) ? item.ImageToolTip : !String.IsNullOrEmpty(item.ToolTip) ? item. ToolTip : (!String.IsNullOrEmpty(treeView.ToolTip) ? treeView.ToolTip : item. ...
TreeView ImageTooltip - ASP.NET Forums IsNullOrEmpty(item.ImageToolTip) ? item.ImageToolTip : !String.IsNullOrEmpty( item.ToolTip) ? item.ToolTip : (!String.IsNullOrEmpty(treeView. ...
TreeNodeBinding.ImageToolTip Property (System.Web.UI.WebControls) When the TreeView control is bound to a data source, use the ImageToolTip property to specify the value to bind to the ImageToolTip property of a TreeNode ...
TreeNode.ImageToolTip Property (System.Web.UI.WebControls) The following code example demonstrates how to use the ImageToolTip property to ... ImageToolTip="Appendix C Description"/> ...
CSS Friendly Control Adapters - Source Code Jul 20 2007 at 8:16 PM. Added TreeView.ImageToolTip support (from http://forums. asp.net/p/1136124/1815087.aspx), bdemarzo, 27 ...
CSS Friendly Control Adapters - Source Code Added TreeView.ImageToolTip support (from http://forums.asp.net/p/1136124/ 1815087.aspx), bdemarzo, 27. 1827. Download Source Download · Browse Source ...
[Mono-patches] r64440 - in trunk/mcs/class/System.Web: System.Web ... Length == 0) + ImageToolTip = bin.ImageToolTip; + } else if (bin. .... WebControls/TreeView.cs 2006-08-27 13:40:17 UTC (rev 64439) +++ ...
TreeView Control, asp:TreeView Control ImageToolTip, Indicates the tooltip text to display for image next to the node. Styles of TreeView Control. NodeSpacing, Space (in pixel) between current ...
ASP.NET 2.0中的treeView - Delphi&Delphi.NET技术- 博客园 NET 2.0 provides a TreeView control. ASP.NET 2.0 TreeView control provides .... Value="C# Corner" NavigateUrl="www.c-sharpcorn.com" ImageToolTip="C# Corn" ...
CodeGuru: Use ASP.NET 2.0's TreeView to Display Hierarchical Data Apr 19, 2006 ... NET 2.0's built-in TreeView control, you can give your Web site a ... ImageToolTip, This property indicates the text that is displayed when ...




Search This Site:










comman factors which has to be consider while developing web site.

color problem

best way to insert text from an ms word file into .aspx

login with stored procedure

app_code error

help..vb.net with flash

vs .net debuggin question. plz help

compiling projects

access datatable columns

stored procedure?

help class cs0165: error

use msword to open .doc file instead of ie

can i pass a sqlconnection object with opened connection to a method/function as a parameter?

allow only the "owner" to make changes on his pic on a public page - how can i?

help201 - question making call to framework 2

search engine in my page

how i import excel sheet data into the ms access database using asp.net with c#

site scraping

strange error

after add docauthor to index service query webpage, gridview background color is disabled

regex problem

to use shell function in web application

why doesn't this work?

newbie wants to do things properly first time

creating a user control

how compare two dates?

help me get started with asp.net

1.1 onclientclick

vs .net 2005 hiding controls in design view or techniques with absolute positioning

'write out' text on a webpage

  Privacy | Contact Us
All Times Are GMT