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. Calling Button_click event from Tab key_press event

Calling Button_click event from Tab key_press event

Scheduled Pinned Locked Moved ASP.NET
csharpquestionasp-net
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.
  • A Offline
    A Offline
    ashutosh_karna
    wrote on last edited by
    #1

    I have a gridview in webpage, which generates a new row with 2 textboxes on clicking a button by end - users. Now, I dont want my users to press a button each time they want to add a new row & then enter some data in textboxes. Instead, I want to call button_click method as soon as "tab" key is pressed and focus is automatically set to the next row's first textbox. How can I do it in asp.net with C#? Please also, tell which namespace is to be added.

    C 1 Reply Last reply
    0
    • A ashutosh_karna

      I have a gridview in webpage, which generates a new row with 2 textboxes on clicking a button by end - users. Now, I dont want my users to press a button each time they want to add a new row & then enter some data in textboxes. Instead, I want to call button_click method as soon as "tab" key is pressed and focus is automatically set to the next row's first textbox. How can I do it in asp.net with C#? Please also, tell which namespace is to be added.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      With javascript. Call the method that your click event calls, in js, in the right event of the tab.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      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