Questions tagged [dynamic-controls]
310 questions
0
votes
3 answers
When to create controls dynamically, so that when I click a button I can save their values?
I am creating some textboxes dynamically and I try to get their values when I click a button, but they are gone. I create the text boxes (declaration, initialization, adding them to the place holder) in another click button event. What shall I…

Ahmad Farid
- 14,398
- 45
- 96
- 136
0
votes
1 answer
How to create a dynamic image control metro app
I am trying to fetch information from an XML document that shows all of my xbox live friends information. What I want to do now is display there avatar in a image control that is created dynamically but I am not sure on how I could actually have…

nGX
- 1,038
- 1
- 20
- 40
0
votes
1 answer
Recreate dynamically created buttons
I know about ASP.NET page life cycle but I'm confused. I have code here which creates buttons from database records. After I click on them, they dissapear with no code triggered. :( I know I have to recreate them in Page_Init but I don't know how.…

Arnes
- 403
- 1
- 5
- 20
0
votes
2 answers
Jquery die() method is not working on dynamically generated button in IE7
In my web page i am creating some button dynamically and By using ON binding some event with the button ,on some condition i have to disable this button for that i am using die() method but it is not seems to be working on ie7 ,it is working fine on…

user1544004
- 207
- 4
- 9
0
votes
1 answer
passing dynamically created ASP.NET controls to Javascript
I'm dynamically generating a textbox and a dropdownlist in my ASP.NET web app table row, I want to change value of textbox based on dropdownlist selectedindex using javascript, but I don't know how to pass these dynamically created controls to my…

Ali_dotNet
- 3,219
- 10
- 64
- 115
0
votes
3 answers
How to pass custom value to asp.net control on aspx page?
I need to generate the following in ASP.NET page. What's the best, easiest way to do that?
Simplified example. So to custom property I need to pass string which would include index (i) to the property of the control. I could do it from codebehind,…

Sumrak
- 3,740
- 7
- 31
- 37
0
votes
3 answers
HELP! Get value of dynamic control radio button!
I am looking into create a dynamic survey as posted in Get User Input From Dynamic Controls but with some different environment.
Below is what i am trying to do:
First when the user click the button, it will populate a dynamic table with radio…
ive1122
0
votes
3 answers
How do you bind jQuery functions to dynamically created controls in C# code-behind
If I dynamically create a control in code-behind, how would I bind jQuery stuff to that control?
IE (this doesnt work, obviously)
mycontrol.Extend(".animate()");
Thanks!
* LET ME CLARIFY --- I want to bind these properties to this control FROM…

Todd Vance
- 4,627
- 7
- 46
- 66
0
votes
1 answer
Attempting to retrieve value from a dynamic custom control
I need to retrieve the text from a textbox within a custom control. The custom control is part of an ArrayList so there can be multiple custom controls displayed on a Form. How do I access the text from a single textbox within one of the controls in…

Plummy194
- 3
- 1
0
votes
1 answer
How do I call .showDialog() from a dynamically loaded class
I am creating a home automation app that has allows plugin views. I have been able to create a class as a sample plugin in a separate project (apk):
public class MyTestClass_IRDroidUIPlugIn extends Button implements IRDroidInterface{
Context…

cstrutton
- 5,667
- 3
- 25
- 32
-1
votes
2 answers
How do you code objects created in code?
I'm using vb.net, and I can't figure out how to code a picturebox that I create in the code.

Mitchell
- 1
- 1
- 1
- 2
-1
votes
1 answer
Add dynamic Buttons according to ListBox items
I need to convert ListBox items into dynamic Buttons. Means, my tool has a ComboBox for showing text files in a folder which contain text links.
When items are selected in the ComboBox, the ListBox below is filled.
I want to remove the ComboBox and…

Data Dynamic
- 25
- 4
-1
votes
1 answer
Having trouble adding an eventhandler to dynamically created dropdownlist
I have the following code in the page_load method of cs file:
DataSet data = new DataSet();
DataTable parent = new DataTable();
DataTable child = new DataTable();
…

A Bjornholm
- 1
- 1
-1
votes
1 answer
Add controls into flowlayoutpanel
In a Windows form, I can add controls into flowlayoutpanel dynamically by doing this:
for (int i = 0; i < 5; i++)
{
Button button = new Button();
butto.Name="btn_"+i.ToSting();
butto.Text=i.ToSting();
…

Homer
- 1
- 1
- 1
-1
votes
1 answer
MFC - Get id of dynamically created rectangle
As part of learning MFC i came across a situation where i create a rectangle dynamically in the OnPaint() of a dialog class something like this.
CPaintDC dc(this);
dc.Rectangle(10,10,208,92);
I want to get the device id of this rectangle from…

Deepak Selvakumar
- 643
- 7
- 24