Gautam Buddha Temple Varanasi,Varanasi - Buddhist Pilgrimage

Monday, January 20, 2014

What are the differences between user control and server control

User Control
1.Re-usability in web pages
2.Can not add to toolbox
3.Drag and drop from solution explorer to page
3.You can register user control to .aspx page by Register tag
4.This is good for static layout
5.Easier to create
6.Can not compiled into DLL
7.Can not use in other web application.

Custom Control
1.It can be compile into DLL.
2.Re-usability of control
3.We can Add to toolbox
4.We can drag and drop from toolbox
5.Good for dynamic layout.
6.We can register user control to .aspx by registering
7.A single copy of control can be used in any other web application.

No comments:

Post a Comment