Solomon Shaffer explains custom controls, describes the complexities and issues surrounding building such controls, and walks through a useful example.
Latest Controls Articles - Page 6
With the inclusion of the FileUpload control in ASP.NET 2.0, Microsoft has finally given us a WebControl to handle file uploading. In this article we'll examine the new FileUpload control and show just how easy it is to build an ASP.NET Web Form that accepts user uploads.
While developing with ASP.NET 2.0, I ran into a situation where I needed to create controls dynamically. I started looking for best practice methods and every example I found talked about the need to recreate the dynamically created controls on postback in order to retrieve the data the user had input or altered. This makes sense, but what if you no longer have a need for the controls that were previously created prior to the postback? Does it really make sense to have to recreate them just to retrieve what is already there?
If you've been using ASP.NET for any length of time then you've almost certainly utilized the DataGrid Server Control. And I'm sure a good portion of you have probably played with the DataList as well... after all, not all of our tables can only have one item per row. But what about that other data web control--the Repeater?
Server controls are one of the things that make developing with ASP.NET so simple and powerful at the same time. We've discussed HTML and web server controls and have showed you how to use them in your ASP.NET pages, but what if there's not a control that does exactly what you want to do?
Read about building a control using MS AJAX to persist the scroll position of child DIVs.
Latest CodeGuru Developer Columns
Follow along with the code provided and become more proficient with using Azure Storage Tables.
Create your own mouse maze game. Examples are both in C# and VB.NET.
Discover the world of Portable Class Libraries (PCLs) and how they can work for you.