What is the difference between custom control and web
control?

Answer Posted / rathi

Usercontrol:
1) User control can be used for the Reusable purpose only.
2) Once you create User control that can be access in
current project.
3) User control extenction is .ascx file.
4) It can be visible in Solution explorer.
5) It is Locally used.If you want used this control in any
page just drag and drop from Solution or Register that
particular page like
<%@ Register TagPrefix="scott" TagName="header"
Src="Controls/Header.ascx" %>
<%
Custom Control:
1) Custom control can used for Globale purpose like Tollbox
controls.
2) custom control can created extenction file is .dll .
3) It can Add to Toolbox like
Right click on toolbox add->choose itemes->select path of
file.
4) custom control If you want used in any forms just you
can drag and drop like normal control.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Different levels of priority provided by .net.

595


How is .net able to support multiple languages?

611


Please explain what is the .net framework and how does it work?

518


can any one tel me the complete Testing Procedure of any one simple PROJECT i mean either web/windows based application?

1471


What is the base class of Button control in .NET?

613






Explain can the validation be done in the server side? Or this can be done only in the client side?

506


What is a .DLL and .EXE files called in .NET?

603


How to debug failed assembly binds?

604


What is misl?

625


How do you instantiate a complex number?

590


Can you write a class without specifying namespace?

584


What is the root class in .net?

656


What is deferred execution vs. Immediate execution in linq?

567


How to load the contents of an xml file into an xmldocument object?

599


Is .net core managed code?

522