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. Get ID's Of All Textboxes into an Array?

Get ID's Of All Textboxes into an Array?

Scheduled Pinned Locked Moved ASP.NET
data-structuresquestion
7 Posts 5 Posters 1 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.
  • P Offline
    P Offline
    Pawan Kiran
    wrote on last edited by
    #1

    Hi all, I want to Store All Textbox id's of Current Page into an Array.. Let me know this..

    A 1 Reply Last reply
    0
    • P Pawan Kiran

      Hi all, I want to Store All Textbox id's of Current Page into an Array.. Let me know this..

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      Why are you doing that?whats your requirement?

      Arun Jacob http://codepronet.blogspot.com/

      P 1 Reply Last reply
      0
      • A Arun Jacob

        Why are you doing that?whats your requirement?

        Arun Jacob http://codepronet.blogspot.com/

        P Offline
        P Offline
        Pawan Kiran
        wrote on last edited by
        #3

        It is a part of my Project Requirement.. My TL Want's me to do this.

        B A A M 4 Replies Last reply
        0
        • P Pawan Kiran

          It is a part of my Project Requirement.. My TL Want's me to do this.

          B Offline
          B Offline
          Blue_Boy
          wrote on last edited by
          #4

          Loop for each control and collect IDs of TextBox control type.


          I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

          1 Reply Last reply
          0
          • P Pawan Kiran

            It is a part of my Project Requirement.. My TL Want's me to do this.

            A Offline
            A Offline
            Arun Jacob
            wrote on last edited by
            #5

            ok :) .you can iterate through this.Controls and then check if its typeof(TextBox) and do as per requirements.

            Arun Jacob http://codepronet.blogspot.com/

            1 Reply Last reply
            0
            • P Pawan Kiran

              It is a part of my Project Requirement.. My TL Want's me to do this.

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              Pawan Kiran wrote:

              It is a part of my Project Requirement..

              Its quite understandable the its your requirement. But, what you are going to do with storing the Textbox ID ? Are they dynamic or Static ?

              Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

              1 Reply Last reply
              0
              • P Pawan Kiran

                It is a part of my Project Requirement.. My TL Want's me to do this.

                M Offline
                M Offline
                Manas Bhardwaj
                wrote on last edited by
                #7

                Pawan Kiran wrote:

                My TL Want's me to do this.

                I did not think dirty, I swear! ;P

                Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

                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