Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7840681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:52:19+00:00 2026-06-02T15:52:19+00:00

I have pretty basic question in #C. I have some text boxes named TextBox1,TextBox2,….,TextBox10

  • 0

I have pretty basic question in #C. I have some text boxes named TextBox1,TextBox2,….,TextBox10 on web form and I want them to access in loop , something like

For(var count=1;count<10;count++) {
    TextBox+count.tostring().text="something"
}

Can we do eval() like JavaScript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:52:23+00:00Added an answer on June 2, 2026 at 3:52 pm

    If you plan to do this on the server side then you could use Page.Controls (or some other container where your textbox objects are located). For example:

    foreach(var ctrl in Page.Controls)
    {
        if (ctrl is TextBox)
        {
            var myTxtControl = ctrl as TextBox;
            myTxtControl.Text = "Some text goes here";
        }
    }
    

    but if you can do this on the client side it would be even better and more interactive than sending data back to server and processing it over there.

    Javascript solution using jQuery might look something like this:

    $(document).ready(function() {
        $("#myButtonText").click(function() {
            $("input[type='text']").val("something");
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pretty basic question that confuses me for some strange reason. I
I have a pretty basic question. In some examples I've seen, objects are just
this should be a pretty basic question. I would like to have some html
I might have pretty basic question about regex. I have the following regex, which
Pretty basic programming question, I know PHP have a function for it, but does
I realize this question is pretty basic, but I'm really stuck. I have a
I have a pretty basic windows form app in .Net. All the code is
I have a pretty basic question: In GAE, if I use memcache to store
I am learning Java and have a pretty basic problem. I am indexing some
I have some pretty basic C++ code: #include <iostream> #include <string.h> #include <msclr\/marshal_cppstd.h> #using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.