vb.net - Add an Html Control in multiple parents in asp.net -


I am creating a new unordered list as follows:

  htmlUL Using the new HtmlGenericControl in the form of a ("UL") end use   

Before closing the 'experiment' section, the list must be added to the original control: Using htmlUL New HTGL Control ("UL") 'some code here parent 1. Control Adding (htmlUl) ending

Unless I add my parents to my control, everything works fine:

 Using the New HTML Engineer Control ("UL") as the  HTMUL 'Some code here parent 1. ControlAdd (HTMLUL) Parent 2 ControlsAud (HTLML) '& lt; --- Only the last parents have been added to the collection. Use of End   

This behavior is expected because every control is unique but I want this list to be more than one parent, Father needs to be added (to avoid conflict, no static id is included in it)

ASP.NET does not support landscape such as too much control used in many places Control Item . Here I believe that there is a problem in identifying the control later in the page life cycle - this control must be presented under different parents and with different IDs, etc. Looks like a very complex and dangerous use case.

However there are several ways to clone the controls on the page here and there. For example check these threads:,.

All Binine said, The simplest thing in your case is to create a new list for just one parental control. You do not need to copy any specific properties or data, so there is no need for overhead cloning made in the subsequent solution.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -