Questions tagged [dynamic-controls]
310 questions
0
votes
1 answer
Problem with events and ParseControl
I'm adding a control (linkbutton) dynamically using ParseControl and it's fine except when I specify an event handler.
If I use:
Dim c As Control = ParseControl("

Richard Edwards
- 1,379
- 1
- 17
- 30
0
votes
1 answer
Dynamic Video Player Will Not Release Focus
Hi Everyone i Know By Default Labels and Picture Box cannot Have Focus, i Design a Method on the Form Key down to Move these Controls About with the arrow buttons
When i Make a Dynamic Video Player Control, i Can No longer move these controls nor…

user3027738
- 46
- 1
- 10
0
votes
2 answers
create dynamic controls from server and client to access from server
I'm building asp.net web app using C# - .net framework 1.1.
I'm trying to build a table that contains text boxes and should be built from the server and from the client both, and the server should access the data inside the text boxes.
couldn't…

user2880391
- 2,683
- 7
- 38
- 77
0
votes
1 answer
Adding dynamic controls to MVC and getting their values in Controller
Sorry for making it too long but you can see actual problem to get issue.
Background:
Its a e-commerce project where I am allowing client to add any number of categories and subcategories under that. For each category client will create some…

Imad
- 7,126
- 12
- 55
- 112
0
votes
1 answer
ASP.NET Dynamic Data: Find Data Control of DynamicControl from FormView using Column Name
Greetings StackOverflow,
TL;DR
In a field template control's OnLoad method how can I find the Data Control of other fields in a FormView by property or column name.
END TL;DR.
I'm trying to add a some logic to the Boolean_Edit field template so that…

LamdaComplex
- 871
- 1
- 8
- 21
0
votes
1 answer
A first chance exception of type 'System.ArgumentException' while creating dynamic pivot item
I am trying to create pivot item dynamically,
here the code which i used
paginationPivot.Items.Clear();
for (int i = 1; i <= pagecount; i++)
{
TextBlock textBlock = new TextBlock();
…

noorul
- 1
0
votes
1 answer
asp.net dynamic control values on postback
In an asp.net web forms application I am pulling in a random set of up to 2 questions and up to 3 answers (for each question) from an SQL database. For each question I am dynamically creating a RadioButtonList control to hold the set of…

defect833
- 275
- 7
- 22
0
votes
1 answer
how do i add ext.net dynamical web form control and retrieve its contain value to save in DB.?
i want to dynamically add two text box and obtain values from those and display as message ...
please help me though example to demonstrate this scenario where I can learn and apply for my actual problem

leosheran
- 39
- 7
0
votes
2 answers
String Builder - Input button module
I am trying to have a button that I create via a stringbuilder call a C# module. No matter what I am trying I can not seem to get it working. Is there a JavaScript I need to do???
StringBuilder sb = new StringBuilder("");
tried:
sb.Append("

mrmcg
- 173
- 6
- 17
0
votes
1 answer
Add data from dynamically added textbox to database
Below is the code to add textboxes and button dynamically on button click. I need to add tat textbox data to database on another button click. Have no idea on that. Any suggestions will be helpful.
private void button1_Click(object sender, EventArgs…

Robin
- 87
- 3
- 14
0
votes
1 answer
Delete textbox tagged to button when dynamically added
Below is the code . Here i am adding 2 textboxes and a button dynamically on button click. Am tagging the textboxes to dynamically created button(remove). So on click of remove button i need to remove the textboxes tagged to it. But only 1 textbox…

Robin
- 87
- 3
- 14
0
votes
2 answers
Dynamically creating multiple label and assigning values to it
I want to create multiple label dynamically and assign values to it,
I have created multiple radio button list and assigned values to it but when i use the same for label only one label control appears and the label takes the last value in the loop…

Amarnath Balasubramanian
- 9,300
- 8
- 34
- 62
0
votes
2 answers
accessing data from a dynamically added custom control
I am writing a survey generating system in asp.net. i asked an ealier question about the best way to create controls that can be passed about as variables. This was problematic with user controls so i was advised to use custom controls and a…

Ben Robinson
- 21,601
- 5
- 62
- 79
0
votes
3 answers
How to Create Dynamic RadioButtonList with values from the DataBase
My table structure
Group | Values
------ ------
Group1 Option 1
Group1 Option 2
Group1 Option 3
Group1 Option 4
Group2 Option 1
Group2 Option 2
Group2 Option 3
Group2 Option 4
Now with the above table values i need to create…

Amarnath Balasubramanian
- 9,300
- 8
- 34
- 62
0
votes
1 answer
Assign properties to UserControl databound to asp:Repeater
I would like to know the best way to directly assign properties to a dynamically created UserControl bound to an asp:Repeater. Consider the following code.
In the codebehind for the UserControl "MyControlType":
public bool IsRetained = false;
In…

chris4600
- 183
- 9