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. Dynamic Image button and Its click event ?

Dynamic Image button and Its click event ?

Scheduled Pinned Locked Moved ASP.NET
question
7 Posts 4 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.
  • M Offline
    M Offline
    Masood Kochi SSF
    wrote on last edited by
    #1

    How i can add click event on dynamically created ImageButton

    E V S 3 Replies Last reply
    0
    • M Masood Kochi SSF

      How i can add click event on dynamically created ImageButton

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      try this btn.Click += new EventHandler(sub_Click);

      We are not a Code Charity

      1 Reply Last reply
      0
      • M Masood Kochi SSF

        How i can add click event on dynamically created ImageButton

        V Offline
        V Offline
        Venkatesh Mookkan
        wrote on last edited by
        #3

        C#:

        ImageButton button = new ImageButton();
        button.Click += new ImageClickEventHandler(button_Click);
        

        VB:

        ImageButton button = new ImageButton
        AddHandler button.Click, AddressOf button_Click
        

        Venkatesh Mookkan My: Website | Yahoo Group | Blog Spot

        1 Reply Last reply
        0
        • M Masood Kochi SSF

          How i can add click event on dynamically created ImageButton

          S Offline
          S Offline
          Sherin Iranimose
          wrote on last edited by
          #4

          C# button.Click += new EventHandler(Button_Click); vb AddHandler buttonn.Click, AddressOf Button_Click

          EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.

          M 1 Reply Last reply
          0
          • S Sherin Iranimose

            C# button.Click += new EventHandler(Button_Click); vb AddHandler buttonn.Click, AddressOf Button_Click

            EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.

            M Offline
            M Offline
            Masood Kochi SSF
            wrote on last edited by
            #5

            I want to zoom that image when i click the Image Button.. Where I write that code ?.

            E S 2 Replies Last reply
            0
            • M Masood Kochi SSF

              I want to zoom that image when i click the Image Button.. Where I write that code ?.

              E Offline
              E Offline
              eyeseetee
              wrote on last edited by
              #6

              check this out http://www.codeproject.com/KB/web-image/ASPImaging1.aspx

              We are not a Code Charity

              1 Reply Last reply
              0
              • M Masood Kochi SSF

                I want to zoom that image when i click the Image Button.. Where I write that code ?.

                S Offline
                S Offline
                Sherin Iranimose
                wrote on last edited by
                #7

                Masood Kochi,SSF wrote:

                click event

                EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.

                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