Creating Custom Web Controls
There are a few basic ways to create custom controls for ASP.NET Web applications. Essentially, creating controls for the Web involves similar processes to creating controls for Windows Forms. You can create a control derived from a UserControl or create a Web Control Library project and generalize an existing Web Server Control.
There is a third way to create user controls that involves removing code more than writing code. This third way is to use the design view to visually design a Web page, add the code to the page, and then save the page as a server control.
We'll cover these three ways of creating user controls and custom controls, as well as demonstrating a couple of interesting solutions using these controls. ...
Get Visual Basic® .NET Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.