Asp net textbox value not updating on postback
The user will then be able to add or remove questions and populate them with text data until a quiz with n questions is created. All the logic for adding the options is in the control, not in the page.
Each added question will also have its own add and remove button so that questions can be added or removed at any location in the quiz. It could have a radiobuttonlist and a "Add Option" button.
So by the time you are in your Page_Load method and check for the value of your variable it hasn't been updated cause your click handler didn't run yet.
The click handler then runs, sets the variable and you see it in the next postback.
Zip Grep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents. Within a question I want to allow the quiz creator to create n number of question options and so I will need to repeat my logic within each question. It's not my first language and it's always good to learn more.
Load Control("Question The Page Load fires before the click handler.
So I wrote a small event handler that reinitializes the databinding for the datasource and the gridview itself and attached it to all of the controls Selected Index Changed events, but still no database interaction happens.
I've put a on the page just so I can tell that the postback is happening, and it is, every timea control is changed.
I think that most of my problems arise from my lack of understanding of the page life cycle.
I have read lots, but I still don't really have a strong grasp of what is going on.
Search for asp net textbox value not updating on postback:
Why does the number of controls depend on clicking the button?