do you mean why the user control added to your web page?
if yes, then it was added by you or someone to use the User Control in your Webpage.
so that you can use the functionality of user control on that page.
In Software Development, everybody is talking about reusability. A UserControl also provides for reusability. In other words, we can create and edit in one thing and get results everywhere, wherever you use the item.
For example we have an e-mail form or a contact us form and I want to use it in 4 different pages in various parts. And if the client requirnments change then I just make the changes in one place and automatically the changes will be done in all forms.
So for this we can use a UserControl.
so that's why it is inherit to your web page.
if you don't want that functionality in your page then you can remove the UserControl from that page.
you can also refer the links below may give you more information regarding UserControl.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
1 Points
18 Posts
I do not get this inherit in my UserControl
Dec 15, 2017 10:55 AM|devquestionsanswers|LINK
I have the following UserControl :
Per_Fiche.ascx
Per_Fiche.ascx.cs
Why it inherit to this : MYFIRSTAPPUserControl and what it does?
Contributor
2990 Points
1210 Posts
Re: I do not get this inherit in my UserControl
Dec 18, 2017 08:44 AM|Deepak Panchal|LINK
Hi devquestions...,
do you mean why the user control added to your web page?
if yes, then it was added by you or someone to use the User Control in your Webpage.
so that you can use the functionality of user control on that page.
In Software Development, everybody is talking about reusability. A UserControl also provides for reusability. In other words, we can create and edit in one thing and get results everywhere, wherever you use the item.
For example we have an e-mail form or a contact us form and I want to use it in 4 different pages in various parts. And if the client requirnments change then I just make the changes in one place and automatically the changes will be done in all forms. So for this we can use a UserControl.
so that's why it is inherit to your web page.
if you don't want that functionality in your page then you can remove the UserControl from that page.
you can also refer the links below may give you more information regarding UserControl.
ASP.NET User Controls Overview
How to: Create an ASP.NET User Control
How to: Include a User Control in an ASP.NET Web Page
UserControl in ASP.Net
if you are saying that another user control is added to your user control then you are using a nested user control.
so that when page get load you can use the functionality of both user controls.
How to implement nested Web user controls in ASP.NET by using Visual Basic .NET
Regards
Deepak
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.