Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Page_init with variable

Page_init with variable

Scheduled Pinned Locked Moved ASP.NET
questioncsharplinq
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vkEE
    wrote on last edited by
    #1

    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!!

    G 1 Reply Last reply
    0
    • V vkEE

      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!!

      G Offline
      G Offline
      Gopi Kishan Mariyala
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups