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. Can you help me in asp.net? Thank you

Can you help me in asp.net? Thank you

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorialquestion
4 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.
  • A Offline
    A Offline
    abglorie
    wrote on last edited by
    #1

    I am new entry in asp.net programming with VB. I did work in VB past two years. Now I want some help from your knowledge. I am creating form with three text box using address typing textbox1 as name textbox2 as address line 1 textbox3 as address line 2 I type name then press enter key. The cursor go to next textbox2. How to made it in this action? In VB do this action using KeyPress event, but how to made in asp.net Please give your suggestions with sample coding. Thanking you, abglorie

    S S D 3 Replies Last reply
    0
    • A abglorie

      I am new entry in asp.net programming with VB. I did work in VB past two years. Now I want some help from your knowledge. I am creating form with three text box using address typing textbox1 as name textbox2 as address line 1 textbox3 as address line 2 I type name then press enter key. The cursor go to next textbox2. How to made it in this action? In VB do this action using KeyPress event, but how to made in asp.net Please give your suggestions with sample coding. Thanking you, abglorie

      S Offline
      S Offline
      sirisha guttikonda
      wrote on last edited by
      #2

      check TabIndex property for controls

      siri

      1 Reply Last reply
      0
      • A abglorie

        I am new entry in asp.net programming with VB. I did work in VB past two years. Now I want some help from your knowledge. I am creating form with three text box using address typing textbox1 as name textbox2 as address line 1 textbox3 as address line 2 I type name then press enter key. The cursor go to next textbox2. How to made it in this action? In VB do this action using KeyPress event, but how to made in asp.net Please give your suggestions with sample coding. Thanking you, abglorie

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

        do the follwing steps step1: step2: function change_focus(e) { var keycode; if (window.event) keycode = window.event.keyCode; else if (event) keycode = event.keyCode; else if (e) keycode = e.which; else return true; if( keycode == 13 ) { document.form1.TextBox2.focus(); } } this steps solve ur problem

        1 Reply Last reply
        0
        • A abglorie

          I am new entry in asp.net programming with VB. I did work in VB past two years. Now I want some help from your knowledge. I am creating form with three text box using address typing textbox1 as name textbox2 as address line 1 textbox3 as address line 2 I type name then press enter key. The cursor go to next textbox2. How to made it in this action? In VB do this action using KeyPress event, but how to made in asp.net Please give your suggestions with sample coding. Thanking you, abglorie

          D Offline
          D Offline
          dilipv 0
          wrote on last edited by
          #4

          abglorie wrote:

          I type name then press enter key. The cursor go to next textbox2. How to made it in this action?

          hi abglorie, If you are doing asp.net that means by pressing Enter you call round trip OR make page to visit server. So either you use TabIndex property of textbox or call javascript function on keypress event which changes focus of textboxes. But according to me it's better to use TabIndex property becuase Enter button is important for sever side execution also no need to call javascript function each time after pressing Enter. Hope you will choose best solution. Dilip Kumar Vishwakarma

          Programmer .Net Consulting

          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