Many user defined controlls

E

etam

Hi,

i have created Web UI Control. I need to use it many times on one
page.

My soulution was to add this controls in a loop to Panel (in
Page_Load), it doesnt work. I think it is beacause this control doesnt
have runat="server".

Any solutions? Maybe there is simpler ide?

Thanks in advance,
Etam.
 
E

etam

Hi,

i have created Web UI Control. I need to use it many times on one
page.

My soulution was to add this controls in a loop to Panel (in
Page_Load), it doesnt work. I think it is beacause this control doesnt
have runat="server".

Any solutions? Maybe there is simpler ide?

Thanks in advance,
Etam.

<asp:panel ID="ProfilesPanel" runat="server" Height="50px"
Width="125px">
</asp:panel>

and Page_Load:
ProfileInfoCollection pic =
ProfileManager.GetAllProfiles(ProfileAuthenticationOption.All);
foreach(ProfileInfo pi in pic) {
ProfileCommon p = (ProfileCommon)ProfileCommon.Create(pi.UserName);
ProfilesPanel.Controls.Add(new ProfileDisplay());
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top