Which one is Better a UserControl or a WebPart?
Submitted by: AdministratorComparison of UserControl and WebPart
Advantages of UserControl:
Developers are already familiar with user controls which reduce the learning curve.
UserControls can be used with other ASP.NET applications. Hence reusable.
Developing user controls using Visual studio is much faster than building it through code as in the case of WebParts.
Disadvantages of UserControl:
There is a performance overhead as usercontrol use a shim as a wrapper to work with Sharepoint.
Deployment is a bit messy.
Advantages of WebPart:
Everything is available and customizable, i.e. toolbar, behavior, content etc.
Better performance as there is no shim wrapper.
Provide a structured deployment mechanism.
Disadvantages of WebPart:
Developers are unfamiliar so learning curve is steeper.
They are strictly for Sharepoint and won't work with other ASP.NET applications. Thus not reusable.
Submitted by: Administrator
Advantages of UserControl:
Developers are already familiar with user controls which reduce the learning curve.
UserControls can be used with other ASP.NET applications. Hence reusable.
Developing user controls using Visual studio is much faster than building it through code as in the case of WebParts.
Disadvantages of UserControl:
There is a performance overhead as usercontrol use a shim as a wrapper to work with Sharepoint.
Deployment is a bit messy.
Advantages of WebPart:
Everything is available and customizable, i.e. toolbar, behavior, content etc.
Better performance as there is no shim wrapper.
Provide a structured deployment mechanism.
Disadvantages of WebPart:
Developers are unfamiliar so learning curve is steeper.
They are strictly for Sharepoint and won't work with other ASP.NET applications. Thus not reusable.
Submitted by: Administrator
Read Online MOSS Job Interview Questions And Answers
Top MOSS Questions
☺ | What is the role of SPWebApplication object? |
☺ | How DPM for MOSS Work? |
☺ | Explain Two types of workflow supported, i.e. Sequential, State Machine? |
☺ | Explain page layouts of MOSS? |
☺ | What is the role of SPWeb.EnsureUser method? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |