Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Articles
Comparing Strings Properly in Java   02 Nov 2005 23:02 GMT
Find out how to use the equals method to compare strings in Java.
Source: DevX
Converting a String to a GUID   02 Nov 2005 22:53 GMT
Learn about this simple way to convert a string, which is in the correct GUID format, into a GUID.
Source: DevX
Power to the Pen: The Pen is Mightier with GDI+ and the Tablet PC Real-Time Stylus   02 Nov 2005 15:56 GMT
You can get your TabletPC applications up and running really fast using built-in controls like InkOverlay. But if you want more power and more control, you’ll need the Real-Time Stylus API. Windows guru Charles Petzold takes you on a tour.
Source: MSDN
ListControl Items, Attributes, and ViewState   02 Nov 2005 00:00 GMT

ASP.NET 1.x provides four Web controls that serve as list controls:

  • The DropDownList,
  • The CheckBoxList,
  • The RadioButtonList, and
  • The ListBox

One nuisance shared among all controls is the fact that their items don't render attributes. For example, imagine that you wanted to display a CheckBoxList with particular CheckBoxes in the list displayed using a certain CSS class; or maybe when a particular RadioButton in a RadioButtonList control is selected, you want to run some client-side JavaScript. These are features that would be typically set using the CheckBox or RadioButton Web control's Attributes collection. Unfortunately, when a list control is rendered it does not render the attributes of the items.

In a previous article of mine, ListControl Items and Attributes, I discussed one technique for adding attribute support to the ASP.NET 1.x list controls. Specifically, I looked at extending the CheckBoxList class and overriding the Render() method to squirt out the ListItem's attributes. This culminated in a live demo that showed how to create a CheckBoxList that included a 'None' option that, when checked, would use client-side JavaScript to automatically unselect all other checkboxes in the CheckBoxList.

In the article, however, I pointed out one drawback of my code: the attributes specified for the ListItems were not saved in ViewState. That means that these attribute values are not persisted across postbacks; they must be reinjected into the ListControl's ListItems on each postback, as was done in the live demo from the previous article. This article examines how to augment the code examined from the previous article to persist the ListItem attributes in ViewState. Read on to learn more!

I strongly encourage you to first read ListControl Items and Attributes before tackling this article...
Read More >


Source: 4GuysFromRolla
A Crash Course on ASP.NET Control Development: Building New Controls from the Ground Up   01 Nov 2005 23:42 GMT
Sometimes you just need to build an ASP.NET from the ground up, without relying on the existing controls. In this article, Dino shows you how to plan, design and develop these controls.
Source: MSDN
My.Internals: Examining the Visual Basic My Feature   01 Nov 2005 23:15 GMT
See the technical details on how the My feature accesses the .NET Framework functionality and items within a project. This article is not a primer on how to use the My feature, but shows how it works.
Source: MSDN
An Overview of Visual Basic 2005   01 Nov 2005 23:12 GMT
Get on overview of the new features in Visual Basic 2005 including, My Visual Basic, IntelliSense, Edit and Continue, AutoCorrect, Just My Code, Windows Forms enhancements, and more.
Source: MSDN
1 2 3 4 5 6 7 8
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage




©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.