problem in creating runtime controls
-
i want to have textboxes in a panel dynamically for each selected item in listbox to enter the corresponding value..what sould i do?
-
i want to have textboxes in a panel dynamically for each selected item in listbox to enter the corresponding value..what sould i do?
There are basically two ways of showing controls dynamically: :: Put all the controls that you need on the page, and use the Visible property do decide which controls are rendered to the final page. :: Create controls in code behind and add to the page. As you already know all the possible combinations of controls that you need, I suggest the first method.
--- single minded; short sighted; long gone;
-
i want to have textboxes in a panel dynamically for each selected item in listbox to enter the corresponding value..what sould i do?
Hi To create controls in the pannel : set the parent property of the control to the pannell that you have created; eg TextBox txtNew = new TextBox(); panel1.Contains(txtNew); txtNew.Parent=panel1; hope this is helpful
-
Hi To create controls in the pannel : set the parent property of the control to the pannell that you have created; eg TextBox txtNew = new TextBox(); panel1.Contains(txtNew); txtNew.Parent=panel1; hope this is helpful
no,it's not working parent property is readonly
-
no,it's not working parent property is readonly
Try the below code.... Dim txt as New TextBox Panel1.Controls.Add(txt)
Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group
-
i want to have textboxes in a panel dynamically for each selected item in listbox to enter the corresponding value..what sould i do?
hi i could set pranent property in windows application, failed in asp.net sorry did not check out ealier, right method panel1.controls.add