Live Chat Icon For mobile
Live Chat Icon

What is the difference between User Controls and Custom Controls?

Platform: ASP.NET| Category: Controls

User Controls are text files with the extension ’.ascx’ which enables you to make GUI re-usable controls. Its a text file, which contains a mixture of HTML and scripting. User Controls can be edited in an editor.

On the other hand Custom Controls reside in compiled ( Dll ) assemblies. They are non-GUI but can emit HTML GUI at runtime. Example of Custom Controls would be the sever controls which come bundled with the .NET SDK like DataGrid, Repeater, DataList etc. Custom Controls are always compiled into Dll’s and hence require good programming knowledge. The purpose of Custom Controls is also to create re-usable units of code.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.