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. Chage the lowercase into uppercase

Chage the lowercase into uppercase

Scheduled Pinned Locked Moved ASP.NET
csharptutorialquestion
6 Posts 4 Posters 8 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.
  • N Offline
    N Offline
    nesaraja
    wrote on last edited by
    #1

    Hi All, How to make a code to enter the text in the text box should be uppercase? If the user enter lowercase.. it should be displayed in the textbox as uppercase? Pls suggest me with sample code in vb.net thanks Paul

    H 1 Reply Last reply
    0
    • N nesaraja

      Hi All, How to make a code to enter the text in the text box should be uppercase? If the user enter lowercase.. it should be displayed in the textbox as uppercase? Pls suggest me with sample code in vb.net thanks Paul

      H Offline
      H Offline
      HimaBindu Vejella
      wrote on last edited by
      #2

      Use ToUpper() Function in Key Press event "Aim to go where U have never been B4 and Strive to achieve it" http://groups.yahoo.com/subscribe/dotnetforfreshers http://himabinduvejella.blogspot.com

      N 1 Reply Last reply
      0
      • H HimaBindu Vejella

        Use ToUpper() Function in Key Press event "Aim to go where U have never been B4 and Strive to achieve it" http://groups.yahoo.com/subscribe/dotnetforfreshers http://himabinduvejella.blogspot.com

        N Offline
        N Offline
        nesaraja
        wrote on last edited by
        #3

        Thanx for your suggestion. there is no keypress event in ASP.NET textbox iam asking the things in asp.net By Paul -- modified at 3:45 Tuesday 18th April, 2006

        G 1 Reply Last reply
        0
        • N nesaraja

          Thanx for your suggestion. there is no keypress event in ASP.NET textbox iam asking the things in asp.net By Paul -- modified at 3:45 Tuesday 18th April, 2006

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          You can't use ASP.NET to change the input as the user writes it, only to change it once it's posted to the server. You have to use Javascript to change the text in the textbox. --- b { font-weight: normal; }

          N 1 Reply Last reply
          0
          • G Guffa

            You can't use ASP.NET to change the input as the user writes it, only to change it once it's posted to the server. You have to use Javascript to change the text in the textbox. --- b { font-weight: normal; }

            N Offline
            N Offline
            nesaraja
            wrote on last edited by
            #5

            pls give any sample code. I think using textbox.attributes will help for this(i don't know exactly) thanks paul -- modified at 4:32 Tuesday 18th April, 2006

            J 1 Reply Last reply
            0
            • N nesaraja

              pls give any sample code. I think using textbox.attributes will help for this(i don't know exactly) thanks paul -- modified at 4:32 Tuesday 18th April, 2006

              J Offline
              J Offline
              J4amieC
              wrote on last edited by
              #6

              You can just put this line into your code behind (my asp textbox was just the default "TextBox1": this.TextBox1.Attributes.Add("onkeyup","this.value = this.value.toUpperCase();");

              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