Getting Started
In VS.NET you just create a Web Custom
Control Library and you're set.
In Notepad, you will need to create a normal
.vb file and add the following -
Imports
System.Web.UI
Namespace AGASP
Public Class
Ctrl1
Inherits
System.Web.UI.WebControls.WebControl
..code goes here...
End
Class
End
Namespace |
You can see that we are Inheriting the
System.Web.UI.WebControls.WebControl class, we could Inherit the Control
class, but this one already does inherit Control and provides some
additional methods, properties etc.