Difference between user controls N custom controls?

Posted by Rajendra.prasad under ASP.NET on 4/18/2010 | Views : 4217 | Status : [Member] | Replies : 2
Hi All,

Difference between user controls N custom controls?

Regards,
Rajendra




Responses

Posted by: Basawareddy on: 4/20/2010 [Member] Starter

Up
0
Down
Hi,

User Control : 1)Designed for single-application scenarios
2)Deployed in the source form (.ascx) along with the source code of the application
3)If the same control needs to be used in more than one application, it introduces redundancy and maintenance problems

Custom control: 1)Designed so that it can be used by more than one application
2)Deployed either in the application's Bin directory or in the global assembly cache
3)Distributed easily and without problems associated with redundancy and maintenance

For more details refer below article:
http://support.microsoft.com/kb/893667

Regards,
Basawareddy M Gopsen


Regards,
Basawareddy M Gopsen

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Er.deepakdalal on: 4/20/2010 [Member] Starter

Up
0
Down
User Controls:-

1)User controls are custom, reusable controls.

2)User Control can access only within the current
project.if u want to access the user control to
other application,u have to include that user control
to that application.Only after that u able to use it.

3) User Control can't included in the visual studio IDE.

4)User Controls are easily created but its very hard.

Custom Control:-

1) Custom controls are compiled code components that execute on the server.

2) Custom control can access from any application because it is stored in the Global Assembly Cache.

3) Where as Custom Control easily include in the Visual Studio IDE.

4) On the other hand Custom Control are very hard to create but they are easily used.




With Regards
Deepak Dalal






Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response