Programmatically created instances of any server control
Questions tagged [dynamic-usercontrols]
79 questions
-1
votes
1 answer
Getting sum of textbox from all the dynamically generated usercontrols
I want to add the price(label) of all the dynamically generated usercontrol and set to a label on the winform how can i do that? by clicking the ok button on the winform
i tried this code but it didn't add the labels and the output is always 0…

empoy asilo
- 7
- 1
- 5
-1
votes
2 answers
Access in UserControl Member's Properties
I create a UserControl with three Panels
I add this UserControl in my main Form but i have then the problem that i can't choose which panel to appear in my main form.
Exccactly i have this code below to make visible my Panel1
Public Function…

Nikos Koutantos
- 7
- 3
-1
votes
2 answers
Load User Control dynamically in C# and assign the Public properties of that control
I want to load the user controls dynamically on my page. I can load the control dynamically with the help of following code:
UserControl ctrl =(UserControl)…

Rohit Vyas
- 1,949
- 3
- 19
- 28
-2
votes
1 answer
Set and display Blazor view component from class property
I am trying to render different pages based on a class property in blazor with only 1 tagg.
In WPF i was able to create multiple views and specify in the prop of an object which view to render with the UserControl class.
WPF Datacontext:
public…

Joben
- 51
- 6