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. Textbox commands

Textbox commands

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

    Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please?? Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear. Thanks alot for any reply

    Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org

    N S 2 Replies Last reply
    0
    • A ADY007

      Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please?? Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear. Thanks alot for any reply

      Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      ADY007 wrote:

      Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please??

      Check this article http://www.w3hearts.com/articles/8/[^] and use the class.

      ADY007 wrote:

      Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear

      On the page load write TextName.Text = "Your text" Then add onclick attribute for textbox on the page load event. It could be something like

      TextName.Attributes.Add("OnClick","clearValues();")

      //Write this in javascript
      function clearValues()
      {
      document.getElementById('TextName').value = "";
      }


      printf("Navaneeth!!") www.w3hearts.com

      A 1 Reply Last reply
      0
      • A ADY007

        Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please?? Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear. Thanks alot for any reply

        Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org

        S Offline
        S Offline
        Sandeep Kumar
        wrote on last edited by
        #3

        Hi For your second question you can use javascript to complete the required task.

        1 Reply Last reply
        0
        • N N a v a n e e t h

          ADY007 wrote:

          Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please??

          Check this article http://www.w3hearts.com/articles/8/[^] and use the class.

          ADY007 wrote:

          Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear

          On the page load write TextName.Text = "Your text" Then add onclick attribute for textbox on the page load event. It could be something like

          TextName.Attributes.Add("OnClick","clearValues();")

          //Write this in javascript
          function clearValues()
          {
          document.getElementById('TextName').value = "";
          }


          printf("Navaneeth!!") www.w3hearts.com

          A Offline
          A Offline
          ADY007
          wrote on last edited by
          #4

          thanks very much m8 :D

          Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org

          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