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. To clear all textboxes in a page

To clear all textboxes in a page

Scheduled Pinned Locked Moved ASP.NET
csharphelp
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.
  • C Offline
    C Offline
    codingrocks
    wrote on last edited by
    #1

    i am doing an application in which i want to clear all textboxes in the page anyone please help me...

    SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE

    E S S 3 Replies Last reply
    0
    • C codingrocks

      i am doing an application in which i want to clear all textboxes in the page anyone please help me...

      SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE

      E Offline
      E Offline
      Elizma
      wrote on last edited by
      #2

      Hi There. I usually create a function that loops through my page and do a check to see if the control is a textbox, if it is it sets the Text property to "". You can then call this function from anywhere. Hope this helps. Regards, Elizma

      1 Reply Last reply
      0
      • C codingrocks

        i am doing an application in which i want to clear all textboxes in the page anyone please help me...

        SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE

        S Offline
        S Offline
        Sylvester george
        wrote on last edited by
        #3

        http://www.codeproject.com/script/comments/forums.asp?msg=2081919&forumid=12076&Page=1&userid=2380649&mode=all#xx2081919xx[^]

        Regards, Sylvester G sylvester_g_m@yahoo.com

        1 Reply Last reply
        0
        • C codingrocks

          i am doing an application in which i want to clear all textboxes in the page anyone please help me...

          SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE

          S Offline
          S Offline
          Sreekumar P P
          wrote on last edited by
          #4

          you can also have some javascrip funtion for this. var controls = document.all; if(controls[i].tagName == 'INPUT') { var tmpID = controls[i].id; tmpID.value = ""; }

          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