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 handle events of dynamic controls

How to handle events of dynamic controls

Scheduled Pinned Locked Moved ASP.NET
helptutorial
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.
  • S Offline
    S Offline
    Sapan Roy
    wrote on last edited by
    #1

    Hi, All I am generating a table which contains Edit button and check box as well. I am getting problem to handle events. I don't have fix no of controls it could be any number. Is there any looping way in order to handle the events of all buttons. If any one have any Idea regarding this. Plz help me out. Thanks Sapan Spillting Headache

    S 1 Reply Last reply
    0
    • S Sapan Roy

      Hi, All I am generating a table which contains Edit button and check box as well. I am getting problem to handle events. I don't have fix no of controls it could be any number. Is there any looping way in order to handle the events of all buttons. If any one have any Idea regarding this. Plz help me out. Thanks Sapan Spillting Headache

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      Yes definatly there should be ..... first thing is you should know how many controls you have in the page at the server try to use Page.Controls and loop through it or find any another method .......... Then in init method declare all Event handlers for your controls

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      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