ASP.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 405 Page Views: 

Is it possible to create a custom control in asp.net? If yes, then how?



Posted By: Avi Date: 1 October 2010 11:15:19 PM
 Answer:

Yes, creating a custom control is possible in ASP.net. Custom controls are user defined controls and are created by grouping existing controls from System.Web.UI.WebControls.WebControl. The following steps are to followed in order to create a Custom Control:- 1. You have to create a custom control library. 2. Then write the appropriate code for it, such that what will that control do should be written in the form of a code. 3. After writing the code compile the control Library. 4. Now copy the dll of the control library to the project where it is to be used. 5. Now it can be declared on the web page using @Register tag.


Posted By: avibtech


Date: 1 October 2010 11:15:19 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image EDL13r
Related Questions
ASP.Net : What do you mean by SmartNavigation in asp.net?

What do you mean by SmartNavigation in asp.net?

The SmartNavigation property is used very rarely. The purpose of this property is to avoid flickring....
Category: ASP.Net Date: 9/30/2010 7:30:14 PM
ASP.Net : What is EnableViewState Property?

What is EnableViewState Property?

With EnableViewState property it is possible to Get or Set a value , which will indicate whether th....
Category: ASP.Net Date: 9/30/2010 7:09:13 PM
ASP.Net : To which namespace does the column mapping belongs?

To which namespace does the column mapping belongs?

It belongs to System.Data.Common Namespace
Category: ASP.Net Date: 9/30/2010 6:59:14 PM
ASP.Net : What is the use of Application_Start method?

What is the use of Application_Start method?

Application_Start is a special method of ASP.Net which do not represent HTTPApplication events. Appl....
Category: ASP.Net Date: 9/30/2010 5:25:13 PM
ASP.Net : What do you mean by the term boxing?

What do you mean by the term boxing?

Boxing is a process through which value type can be converted to refrence type. The process works a....
Category: ASP.Net Date: 9/30/2010 5:07:14 PM