Page_init with variable
-
I am loading dynamic questions in the panel part of aspx page, in the Page_Init method, to avoid situation of losing the values on postback issues. There is a linq statement that loads this dynamic panel. The same aspx page is used in 3 step registration process, by hiding and showing panels. This dynamic questionnaire is step 3 of process. I now need to limit the questions that appear on this dynamic queationnaire, by what was entered in step 1 of questionnaire, like a radiobutton choice. How can I pass this to the Page_Init page? Or can i reload this dynamic question which is loaded in page_init, and limit the questions? Thanks!!
-
I am loading dynamic questions in the panel part of aspx page, in the Page_Init method, to avoid situation of losing the values on postback issues. There is a linq statement that loads this dynamic panel. The same aspx page is used in 3 step registration process, by hiding and showing panels. This dynamic questionnaire is step 3 of process. I now need to limit the questions that appear on this dynamic queationnaire, by what was entered in step 1 of questionnaire, like a radiobutton choice. How can I pass this to the Page_Init page? Or can i reload this dynamic question which is loaded in page_init, and limit the questions? Thanks!!
Whenever you are posting back you can access Request.Form["ElementName"] to get what was the value before the form got posted. I did not understand the purpose of "linq statement that loads this dynamic panel". Can you tell me what is the architecture you are using. Is it Asp .Net Forms or MVC?