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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to we write code for enterkey

how to we write code for enterkey

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorial
6 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.
  • V Offline
    V Offline
    vbmadhavi
    wrote on last edited by
    #1

    hello all, i want to create dynamic textboxes when i press enter keybutton.i dont know how to write code. i want in asp.net with vb.net plz help me.

    S C 2 Replies Last reply
    0
    • V vbmadhavi

      hello all, i want to create dynamic textboxes when i press enter keybutton.i dont know how to write code. i want in asp.net with vb.net plz help me.

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      vbmadhavi wrote:

      i want in asp.net with vb.net

      Then Post it in job section . this section is for giving a start for people when u r struck..! You Have to learn 3 things for this 1)Handling enter key i.e. Java script 2)Calling server methods thr client 3)Adding texk boxes dynamically/adding directly thr java script the html controls in asp.net 1)Refer the below link..! Handling enter key i.e. Java script[^] 2)Calling server methods thr client[^] 3)http://viralpatel.net/blogs/2009/01/dynamic-add-textbox-input-button-radio-element-html-javascript.html[^]/ Adding texk boxes dynamically using javascript[^] Things You Have to Do 1)Create an event for Enter Click using javascript and add the controls I never tried it But if you have any issues let us know group may help..!

      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

      V 1 Reply Last reply
      0
      • S sashidhar

        vbmadhavi wrote:

        i want in asp.net with vb.net

        Then Post it in job section . this section is for giving a start for people when u r struck..! You Have to learn 3 things for this 1)Handling enter key i.e. Java script 2)Calling server methods thr client 3)Adding texk boxes dynamically/adding directly thr java script the html controls in asp.net 1)Refer the below link..! Handling enter key i.e. Java script[^] 2)Calling server methods thr client[^] 3)http://viralpatel.net/blogs/2009/01/dynamic-add-textbox-input-button-radio-element-html-javascript.html[^]/ Adding texk boxes dynamically using javascript[^] Things You Have to Do 1)Create an event for Enter Click using javascript and add the controls I never tried it But if you have any issues let us know group may help..!

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        V Offline
        V Offline
        vbmadhavi
        wrote on last edited by
        #3

        thanku very much sir .its working

        S 1 Reply Last reply
        0
        • V vbmadhavi

          thanku very much sir .its working

          S Offline
          S Offline
          sashidhar
          wrote on last edited by
          #4

          Glad To Hear tht Mam ..!:thumbsup::cool: But Dont Forget to mark it as answer if it really helps..!

          LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

          1 Reply Last reply
          0
          • V vbmadhavi

            hello all, i want to create dynamic textboxes when i press enter keybutton.i dont know how to write code. i want in asp.net with vb.net plz help me.

            C Offline
            C Offline
            carlecomm
            wrote on last edited by
            #5

            You can write like this: XXXX.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {do create event; return false;}} else {return true}; ");

            V 1 Reply Last reply
            0
            • C carlecomm

              You can write like this: XXXX.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {do create event; return false;}} else {return true}; ");

              V Offline
              V Offline
              vbmadhavi
              wrote on last edited by
              #6

              hello sir thanx for u r reply. onkeydown is a function in java script or else? give explain to that

              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