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. How to get dropdownlist selected value in Page_Init event

How to get dropdownlist selected value in Page_Init event

Scheduled Pinned Locked Moved ASP.NET
tutorial
3 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.
  • K Offline
    K Offline
    K V Sekhar
    wrote on last edited by
    #1

    Hi all, I am trying to read the dropdown selected value in Page_Init Event, but i couldn't. I have to dynamically add controls to form based on dropdown selected value.

    please suggest me how to read dropdown selected value in Page_Init.

    thanks in advance.

    A 1 Reply Last reply
    0
    • K K V Sekhar

      Hi all, I am trying to read the dropdown selected value in Page_Init Event, but i couldn't. I have to dynamically add controls to form based on dropdown selected value.

      please suggest me how to read dropdown selected value in Page_Init.

      thanks in advance.

      A Offline
      A Offline
      Anurag Gandhi
      wrote on last edited by
      #2

      In normal scenario, you cannot read the any entered value from client side in your Page_Init event. (If you wish, you can read the posted form manually and get to know about the dropdown selected value) In Asp.Net, your control gets populated with value after Page_Init event and before Page_Load event. So, your values will be available at Page_Load and later events. I will suggest, things would be easier if you push the logic to Page_Load event or later.

      Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.

      K 1 Reply Last reply
      0
      • A Anurag Gandhi

        In normal scenario, you cannot read the any entered value from client side in your Page_Init event. (If you wish, you can read the posted form manually and get to know about the dropdown selected value) In Asp.Net, your control gets populated with value after Page_Init event and before Page_Load event. So, your values will be available at Page_Load and later events. I will suggest, things would be easier if you push the logic to Page_Load event or later.

        Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.

        K Offline
        K Offline
        K V Sekhar
        wrote on last edited by
        #3

        Thanks Gandhi, thanks for your suggestion

        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