Creating Custom Server Controls in ASP.NET

Creating a compelling Web user interface is hard work. Any time you can take advantage of .NET features to make your UI elements more reusable, you should take it. User controls offer one options. But, if you really want flexibility and power, you really have to move to custom server controls. Visual Studio .NET doesn’t offer a visual interface for creating custom server controls as it does for user controls, but it really isn’t that difficult to create them yourself.

In this video, you walk through the process of creating a custom server control. You will dig into an example that displays a die (for use in, say, a Yahtzee game or a craps game). You will see how to define your own properties that appear in the Properties window and how to control the rendering process. After the control is complete, you will see how to create an ASP.NET application that contains your control, and you’ll then use the control to create a functional Web page.

This video demystifies the process of creating your own server controls and gives you a strong foundation for building your own user interface masterpieces.

  Click Here to watch the video!  

From the CodeGuru editors: This link is to a Windows media file (.WMV); you must have a program such as Windows Media Player to view it. This is the first video we have posted, so we are not sure yet what performance you will get.

If you do not have have a high-bandwidth connection, you should not try to view this video. If you like this video, please add a comment so we know to consider more in the future!

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read