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 use onblur and on focus events of imagebutton in asp.net

how to use onblur and on focus events of imagebutton in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
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.
  • R Offline
    R Offline
    Rmesh
    wrote on last edited by
    #1

    Hi friends In my project i am using imagebutton, for visual effects i want to use on blur,onfocus,onclick events of image button how to use it

    G H 2 Replies Last reply
    0
    • R Rmesh

      Hi friends In my project i am using imagebutton, for visual effects i want to use on blur,onfocus,onclick events of image button how to use it

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      That has nothing to do with ASP.NET as it all happens in the browser. You use Javascript for that, and you should rather ask in the Web Development forum.

      --- Year happy = new Year(2007);

      1 Reply Last reply
      0
      • R Rmesh

        Hi friends In my project i am using imagebutton, for visual effects i want to use on blur,onfocus,onclick events of image button how to use it

        H Offline
        H Offline
        Haissam
        wrote on last edited by
        #3

        add the below code in the page_load event ImageButton1.Attributes.Add("onblur","alert('this is a blur test')"); ImageButton1.Attributes.Add("onfocus","alert('this is a focus test')"); ImageButton1.Attributes.Add("onclick","alert('this is a click test')"); WHERE ImageButton1 is the id of your image button

        Best Regards, Haissam Abdul Malak My Blog

        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