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
What is the difference between response.redirect & server.transfer?
How is .net able to support multiple languages?
Explain me what is the difference between an abstract class and an interface?
What are the different types of remote object creation mode in .net?
What do you mean by Code Access Security in .NET?
What relationship is between a process, application domain, and application?
What are three common acronyms used in .net, and what do they stand for?
I'm having some trouble with cas. How can I troubleshoot the problem?
How to create a key pair in .net?
What is static constructor, when it will be fired? And what is its use?
Explain how to redirect tracing to a file?
Why did they call it .net?
Can you write a class without specifying namespace?
Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component
How ccw (com callable wrapper) and rcw (runtime callable wrappers) works?