Deborah's Developer MindScape






         Tips and Techniques for Web and .NET developers.

Archive for January, 2010

January 31, 2010

ASP.NET: ListBox Tooltip

Filed under: ASP.NET,C#,VB.NET @ 6:47 pm

The ASP.NET ListBox does not display a horizontal scroll bar by default, which can be a problem if any of your list items are too long to fit. One solution to this problem is to use a tooltip. As the user moves the mouse over the ListBox entries, the full text appears in a tooltip. […]

Finding a Node in an XML String

Filed under: C#,Lambda Expressions,LINQ,VB.NET,XML @ 4:21 pm

A common requirement with an XML file is to find a particular node. If you are targeting the .NET framework 3.5 or higher, you can find the node using Linq to XML or by using Lambda expressions. As with many of my prior XML examples, the XML string is as follows: <States>   <State name="Wisconsin"> […]

XML Documentation Comments

Filed under: C#,VB.NET,XML @ 2:37 pm

You can document your classes, properties, methods, and so on using XML tags. I’m sure all developers know this at this point, but did you know that you can modify the set of valid tags? If you are not familiar with XML Documentation Comments (or just XML Comments), you create them differently depending on the […]

January 26, 2010

ASP.NET: ListBox Scrollbar

Filed under: ASP.NET,C#,VB.NET @ 9:46 pm

This one is in the category of obvious once you know how to do it. But having done Silverlight of late, I could not recall how to turn on the scrollbar in a ASP.NET ListBox. There is no scrollbar property of any kind. A bit of "guess and check" with Bing provided lots of custom […]

January 25, 2010

ASP.NET: Selecting a Row in a GridView

Filed under: ASP.NET,C#,VB.NET @ 3:25 pm

Once I had my ASP.NET GridView in place (see this prior post), the next thing I wanted to do was select a row and go to a review/edit page. But I didn’t want to add the "Select" or "Edit" buttons. It seemed more natural for the users to simply click on the row. I used […]

ASP.NET: Displaying a Second Window with JavaScript

Filed under: ASP.NET,C#,VB.NET @ 11:34 am

In your ASP.NET application, you may want to allow a user to view some additional information without leaving the page that they are on. For example, you may want to display the current window and show some help text in a new window. Or you may want to display the concert ticket order page and […]

ASP.NET: GridView and Business Objects

Filed under: ASP.NET,C#,VB.NET @ 12:53 am

Most ASP.NET GridView control examples demonstrate using the GridView with a SQLDataSource. But in some cases, you may want to use your own business objects instead. One way to achieve this goal is to use the ObjectDataSource as shown in MSDN here. Another option is to simply bind the GridView directly to your business objects […]

January 21, 2010

ASP.NET: Aligning Text

Filed under: ASP.NET,C#,VB.NET @ 12:40 pm

Most ASP.NET best practice guides recommend laying out pages using Div tags instead of Tables for better performance and control. With that in mind, how do you align multiple text strings in a single row? For example, a title bar on a section of an ASP.NET page may look like this: The centered title defines […]

January 20, 2010

Silverlight: Themes

Filed under: C#,Silverlight,VB.NET @ 1:02 pm

When Windows Presentation Framework (WPF) and Silverlight first came out, the announcements happily proclaimed that it was even easier to have your visual design team build really nice user interfaces that we, the developers, could then enhance with code. But what about the significant number of us that don’t have a visual design team or […]

January 15, 2010

Silverlight: Centering a RadioButton

Filed under: C#,Silverlight,VB.NET @ 1:17 pm

Depending on how you code the XAML for a RadioButton in Silverlight, you may not be able to get it to center. If you have simple RadioButton text, this issue is not noticeable. But if you include controls like a NumericUpDown as part of the RadioButton, it is very noticeable. I would assume that this […]

Next Page »

© 2014 Deborah's Developer MindScape   Provided by WPMU DEV -The WordPress Experts   Hosted by Microsoft MVPs

Network-wide options by YD - Freelance Wordpress Developer