ASP.NET Elimination of webuser controls with same inside controls ID

50 Views Asked by At

I want to remove some web user controls with same client side ID of the asp controls that are inside.

here a short example

HTML of Web User Control, Control Name is "home"

<asp:Label ID="lblStatus" runar="server" />
<br />
<asp:Button ID="btnSubmit" runat="server" />

Now usage of this web user control

<uc1:Home runat="server" ID="Home" />

Rendered client IDs of inside webuser controls are,

Home_lblStatus
Home_btnSubmit

Now here is my question, I want to remove user control with same client side IDs. Anybody have any idea for this?

Note I'am not using any master page.

Thanks in advance.

0

There are 0 best solutions below