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

Compare & contrast rich client (smart clients or windows-based) & browser-based web application

734


Please explain what is a delegate?

938


How do you turn off cookies for one page in your site? Give an example.

702


How anonymous method is different from a lambda expression?

737


Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

2129


what user controls are and what server controls are and the differences between the two.

1796


What is the microsoft .net?

823


What are the authentication methods in .net?

770


What does jit compilation do in .net?

787


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

739


Explain soap and xml?

756


Tell me about secure socket layer? How to make use of the technology?

750


Different between .net & j2ee ?

786


Explain how to rename a table using sql queries?

755


What is jit compilers?

758