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. General Programming
  3. C#
  4. img button event

img button event

Scheduled Pinned Locked Moved C#
questionhtmlhelp
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.
  • S Offline
    S Offline
    sharon
    wrote on last edited by
    #1

    hello, I have a question: I have a written html page with image. when the user click on it i want it to raise event,I do not want to handle it throw the asp. I dont want to write: I want to handle the onclick event in my aspx.cs file how can I do it? thank you very much for your help, sharon

    C 1 Reply Last reply
    0
    • S sharon

      hello, I have a question: I have a written html page with image. when the user click on it i want it to raise event,I do not want to handle it throw the asp. I dont want to write: I want to handle the onclick event in my aspx.cs file how can I do it? thank you very much for your help, sharon

      C Offline
      C Offline
      Chris Rickard
      wrote on last edited by
      #2

      If you want to handle it on the server instead of the client you have to make it a server object. Offhand I'm not certain an IMG raises a server side click event but I am fairly certain an Input type="Image" does. Then just make sure and add the event handler code inside your .cs . BTW: for next time this is an ASP/ASP.NET question and should go there.:)

      S 1 Reply Last reply
      0
      • C Chris Rickard

        If you want to handle it on the server instead of the client you have to make it a server object. Offhand I'm not certain an IMG raises a server side click event but I am fairly certain an Input type="Image" does. Then just make sure and add the event handler code inside your .cs . BTW: for next time this is an ASP/ASP.NET question and should go there.:)

        S Offline
        S Offline
        sharon
        wrote on last edited by
        #3

        thank you very much , i'll try it later. sharon.

        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