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. Clearing textbox on focus

Clearing textbox on focus

Scheduled Pinned Locked Moved ASP.NET
javascripthelp
12 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.
  • H honeyss

    Hi I need to clear the textbox when we focus on the textbox control without using javascript. Plz anyone help me in this regard. Thanks in Advance Bye:)

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

    honeyss wrote:

    without using javascript.

    Impossible

    All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

    1 Reply Last reply
    0
    • H honeyss

      Hi I need to clear the textbox when we focus on the textbox control without using javascript. Plz anyone help me in this regard. Thanks in Advance Bye:)

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

      That's kind of like saying 'I want to drive a car without using petrol.'. The answer is no. All client side code is javascript unless you use VBSCript, which is IE only. Nothing happens on the client without Javascript.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      N 1 Reply Last reply
      0
      • C Christian Graus

        That's kind of like saying 'I want to drive a car without using petrol.'. The answer is no. All client side code is javascript unless you use VBSCript, which is IE only. Nothing happens on the client without Javascript.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

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

        Christian Graus wrote:

        That's kind of like saying 'I want to drive a car without using petrol.'.

        Nice, very nice

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

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

          Christian Graus wrote:

          That's kind of like saying 'I want to drive a car without using petrol.'.

          Nice, very nice

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

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

          I really don't understand when people say 'I want to do X, but I don't want to use Y', where Y is the right way to do X. Why would you want to do something but not in the right way ?

          Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          H 1 Reply Last reply
          0
          • C Christian Graus

            I really don't understand when people say 'I want to do X, but I don't want to use Y', where Y is the right way to do X. Why would you want to do something but not in the right way ?

            Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            H Offline
            H Offline
            honeyss
            wrote on last edited by
            #6

            Can i use javascript for mobile wap browsers

            C 1 Reply Last reply
            0
            • H honeyss

              Can i use javascript for mobile wap browsers

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

              That depends on the browser. For the one I have, I know the answer is no. But, that means you're out of options.

              Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              H 1 Reply Last reply
              0
              • C Christian Graus

                That depends on the browser. For the one I have, I know the answer is no. But, that means you're out of options.

                Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                H Offline
                H Offline
                honeyss
                wrote on last edited by
                #8

                ok thank you............But if there is any possibility let me know............

                C 1 Reply Last reply
                0
                • H honeyss

                  ok thank you............But if there is any possibility let me know............

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

                  There most definately is not. No one is going to impliment any other solution, were they to bother, they'd go with the standard one ( javascript ). At a minimum, they should support the noscript tag, you could use that to redirect to a modified version that knows it doesn't have js support.

                  Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                  H 1 Reply Last reply
                  0
                  • C Christian Graus

                    There most definately is not. No one is going to impliment any other solution, were they to bother, they'd go with the standard one ( javascript ). At a minimum, they should support the noscript tag, you could use that to redirect to a modified version that knows it doesn't have js support.

                    Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                    H Offline
                    H Offline
                    honeyss
                    wrote on last edited by
                    #10

                    ok thank you

                    1 Reply Last reply
                    0
                    • H honeyss

                      Hi I need to clear the textbox when we focus on the textbox control without using javascript. Plz anyone help me in this regard. Thanks in Advance Bye:)

                      V Offline
                      V Offline
                      VenkataRamesh
                      wrote on last edited by
                      #11

                      Hi Look at this link.. http://weblogs.asp.net/dburke/archive/2003/10/01/29959.aspx Hope it will work for u Bye...

                      H 1 Reply Last reply
                      0
                      • V VenkataRamesh

                        Hi Look at this link.. http://weblogs.asp.net/dburke/archive/2003/10/01/29959.aspx Hope it will work for u Bye...

                        H Offline
                        H Offline
                        honeyss
                        wrote on last edited by
                        #12

                        Hi Ramesh, First of all let me thank u for coming forward to help me. In that link they are using Javascript.I need that with out using Javascipt as i am into developing wap site........

                        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