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

Why do we use msmq?

618


Explain what are an object and a class?

578


Explain when should you use .net web forms over asp.net mvc?

528


What does jit do?

585


What does cil do?

584






Explain what is the difference between response.redirect & server.transfer?

565


What's the problem with .net generics?

571


Difference between value type & reference types ?

609


Please explain what inheritance is, and why it's important?

570


What is Complex Class in .NET?

616


Do you know what's the difference between .net and laravel?

573


Explain what is the difference between constants and read-only variables?

533


Explain the difference between the while and for loop.

597


Explain difference between panel and groupbox classes using .net?

553


Which Namespace is used to to achieve MultiThreading in .NET?

591