I'm currently at a project that includes giving the chance to create a survey online, w/ the questions, answers and its types.
What currently happens is the following: I coded it so that the user is able to add a question, pressing a button, and in that event ,it would normally generate a Label, a Textbox, and a Dropdownlist (or a Listbox, deppending on whether is a simple or multiple answer).
He can generate the first one, but that's about it. When I pess the button again, he just gives me one of each control, and doesn't update the table count at all (a control of type Table is what i'm using currently to store and show these controls).
I've already seen the Postback possibility (in the controls, and put the Page.isNotPostback in the Page_Load event of the page), but i can't put it to work. Can you help me?
Question
Tha1
Hey guys.
I'm currently at a project that includes giving the chance to create a survey online, w/ the questions, answers and its types.
What currently happens is the following: I coded it so that the user is able to add a question, pressing a button, and in that event ,it would normally generate a Label, a Textbox, and a Dropdownlist (or a Listbox, deppending on whether is a simple or multiple answer).
He can generate the first one, but that's about it. When I pess the button again, he just gives me one of each control, and doesn't update the table count at all (a control of type Table is what i'm using currently to store and show these controls).
I've already seen the Postback possibility (in the controls, and put the Page.isNotPostback in the Page_Load event of the page), but i can't put it to work. Can you help me?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts