sa_keles
August 31st, 2005, 04:08 AM
how can i add a checkbox to a web form at runtime in asp.net
|
Click to See Complete Forum and Search --> : adding checkbox at runtime sa_keles August 31st, 2005, 04:08 AM how can i add a checkbox to a web form at runtime in asp.net TSmooth August 31st, 2005, 07:20 AM Put something like this in your page_load function: Dim MyCheckBox As CheckBox MyCheckBox = New CheckBox MyCheckBox.Text = "MyCheckBox" MyCheckBox.ID = "dynamic_checkbox1" ' This can be any control container object Page.Controls.Add(MyCheckBox) - Tom sa_keles August 31st, 2005, 07:46 AM i wrote that code. i can reach events of checkbox but i cant produce as an image on the form. i mean i cant see wen form runs codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |