Dynamically creating and positioning controls
-
Hi all, I am creating a type of control that is used to display fill-in-blank questions, the control will have a drop down list in the location of each blank with 4 options to choose from, like this The elephant [is, are, us, we] a very big Mammal that [eat, eating, eats, ate] plants... [is, are, us, we] = drop down list with 4 options that the student uses to choose the best answer. The question is how to dynamically create drop down server controls AND position them in the correct place within the words of the paragraph? Any ideas? Thanks :-)
And ever has it been that love knows not its own depth until the hour of separation Mohammad Gdeisat
-
Hi all, I am creating a type of control that is used to display fill-in-blank questions, the control will have a drop down list in the location of each blank with 4 options to choose from, like this The elephant [is, are, us, we] a very big Mammal that [eat, eating, eats, ate] plants... [is, are, us, we] = drop down list with 4 options that the student uses to choose the best answer. The question is how to dynamically create drop down server controls AND position them in the correct place within the words of the paragraph? Any ideas? Thanks :-)
And ever has it been that love knows not its own depth until the hour of separation Mohammad Gdeisat
Easy way is to put this inside a template column of a GridView. ASP.NET will maintain the viewstate for all the dropdowns.
Navaneeth How to use google | Ask smart questions
-
Easy way is to put this inside a template column of a GridView. ASP.NET will maintain the viewstate for all the dropdowns.
Navaneeth How to use google | Ask smart questions
What about positioning the controls between the words in the paragraph?
And ever has it been that love knows not its own depth until the hour of separation Mohammad Gdeisat
-
Hi all, I am creating a type of control that is used to display fill-in-blank questions, the control will have a drop down list in the location of each blank with 4 options to choose from, like this The elephant [is, are, us, we] a very big Mammal that [eat, eating, eats, ate] plants... [is, are, us, we] = drop down list with 4 options that the student uses to choose the best answer. The question is how to dynamically create drop down server controls AND position them in the correct place within the words of the paragraph? Any ideas? Thanks :-)
And ever has it been that love knows not its own depth until the hour of separation Mohammad Gdeisat
DropDownList ddl = new Dropdownlist(); pnl.control.add(ddl);