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. Html reset button is called when esc button is clicked. how can i avoid it?

Html reset button is called when esc button is clicked. how can i avoid it?

Scheduled Pinned Locked Moved C#
questioncsharphtmlasp-netcom
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.
  • N Offline
    N Offline
    nachisaravanan
    wrote on last edited by
    #1

    Hi, i have developed an asp.net application.In that application i am getting the user information.i have 2 button,one web control[ok button] and anpother html control [reset button].While entering the user information,when i press esc button it is calling reset button and all the fields values are resetted. how can avoid this problem? i have seen this problem in many of the sities.[Example - Rediff.com while creating new user] Any ideas? Thankz in advance. With Regards [S.P.Saravanan]

    V 1 Reply Last reply
    0
    • N nachisaravanan

      Hi, i have developed an asp.net application.In that application i am getting the user information.i have 2 button,one web control[ok button] and anpother html control [reset button].While entering the user information,when i press esc button it is calling reset button and all the fields values are resetted. how can avoid this problem? i have seen this problem in many of the sities.[Example - Rediff.com while creating new user] Any ideas? Thankz in advance. With Regards [S.P.Saravanan]

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      It is by design. You may like to handle keypress and if event.keyCode is 27 (ESC), then null it and return false. Vasudevan Deepak Kumar Personal Homepage namespace LavanyaDeepak
      Personal Weblog
      The World of Deepak and Lavanya
      ViewPoint 24x7

      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