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. firing an dropdownlist event

firing an dropdownlist event

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
3 Posts 3 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
    kalyan_2416
    wrote on last edited by
    #1

    this.outlet.SelectedIndexChanged += new System.EventHandler(this.outlet_SelectedIndexChanged); this way we can fire an event is this correct or not in asp.net this is not firing the event do i need to add anything after this

    N R 2 Replies Last reply
    0
    • K kalyan_2416

      this.outlet.SelectedIndexChanged += new System.EventHandler(this.outlet_SelectedIndexChanged); this way we can fire an event is this correct or not in asp.net this is not firing the event do i need to add anything after this

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      kalyan_2416 wrote:

      is this correct or not in asp.net

      Yes It is correct

      kalyan_2416 wrote:

      this is not firing the event

      It depends on where you wrote the above line. Have you wrote outlet_SelectedIndexChanged method ? How you understood that it is not firing event ? Make sure that controls autopostback is set to true.


      My Website | Ask smart questions

      1 Reply Last reply
      0
      • K kalyan_2416

        this.outlet.SelectedIndexChanged += new System.EventHandler(this.outlet_SelectedIndexChanged); this way we can fire an event is this correct or not in asp.net this is not firing the event do i need to add anything after this

        R Offline
        R Offline
        ravi_chandra
        wrote on last edited by
        #3

        Try this: Add AutoPostBack="true"

        ravi chandra

        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