Prof. Neeraj Bhargava
Pramod Singh Rathore
Department of Computer Science
School of Engineering & System Sciences,
MDS University Ajmer, Rajasthan, India
1
Custom Controls
Custom Controls
 You can create the following types of custom controls in
Visual Studio .NET:
 § User control: A Web Forms page that can be used as
a control on other Web
 Forms pages. Thus, if you already have a Web Forms page
and you need to construct a similar one, you can use the
existing page as a user control.
2
Custom Controls
 § Composite control: A combination of existing
controls that is used as a
 single control. You can create a composite control in any
.NET programming language and use it on an ASP.NET
page. For example, you can create a composite control
comprising a button and a text box in C# and use it on an
ASP.NET page.
3
Creating Custom Controls
4
Queries ????
5
6

15.custom controls

  • 1.
    Prof. Neeraj Bhargava PramodSingh Rathore Department of Computer Science School of Engineering & System Sciences, MDS University Ajmer, Rajasthan, India 1 Custom Controls
  • 2.
    Custom Controls  Youcan create the following types of custom controls in Visual Studio .NET:  § User control: A Web Forms page that can be used as a control on other Web  Forms pages. Thus, if you already have a Web Forms page and you need to construct a similar one, you can use the existing page as a user control. 2
  • 3.
    Custom Controls  §Composite control: A combination of existing controls that is used as a  single control. You can create a composite control in any .NET programming language and use it on an ASP.NET page. For example, you can create a composite control comprising a button and a text box in C# and use it on an ASP.NET page. 3
  • 4.
  • 5.
  • 6.