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 7410265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:12:34+00:00 2026-05-29T06:12:34+00:00

I have a huge ASPX web form which has around 100 fields which need

  • 0

I have a huge ASPX web form which has around 100 fields which need to be input fields. This web form is an excel sheet converted into to an HTML Page.

I have marked table cells which need to be input fields with a string “txtb” (TextBox).

Once I was done with the look and feel, I tried replacing all txtb string with <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> thinking that the ID=TextBox1 will be incremented automatically by the editor itself, like TextBox2, TextBox3 and so on.

But all the replaced txtb strings show <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> only.

I know that if we copy <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> and paste manually inside the editor, the editor will increment the id by 1 for each paste.

How can I get this to happen for automatic replace? Please help.


<tr>
    <td colspan="2">
        &nbsp; &nbsp; txtb&nbsp;
    </td>
    <td>
        &nbsp; txtb&nbsp;
    </td>
    <td>
        &nbsp; txtb&nbsp;
    </td>
    <td>
        &nbsp; txtb&nbsp;
    </td>
</tr>
<tr>
    <td colspan="2">
        &nbsp; &nbsp; txtb&nbsp;
    </td>
    <td>
        &nbsp; txtb&nbsp;
    </td>
    <td>
        &nbsp; txtb&nbsp;
    </td>
    <td>
        &nbsp; txtb&nbsp;
    </td>
</tr>

It is just some huge file that looks like this. I want to replace each txtb instance with <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>, but the ID should be incremented on each replace. I wish PowerShell was installed on this machine. Otherwise I could have scripted this. Since there is not much time and no other way I can think of, I am posting here for help.

  • 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-05-29T06:12:35+00:00Added an answer on May 29, 2026 at 6:12 am

    I would recommend this library and query your page for ‘txtb’ tags and replace them with textboxes. You can count the number of ‘txtb’ occurences and append them to the ID attribute of your dynamicly created textbox.

    http://htmlagilitypack.codeplex.com/

    See this links for some examples:

    1. http://htmlagilitypack.codeplex.com/wikipage?title=Examples

    Does this help you?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a .aspx file which has about 400 lines of javascript code. Is
I have a huge SQL script which i need to analyse. It would be
I have a web project that has a page called editemployee.aspx. The code behind
I have huge dataframe like this: SN = c(1:100, 1:100, 1:100, 1:100) class =
I have huge 3D arrays of numbers in my .NET application. I need to
I have huge number of Word files I need to merge (join) into one
I have a huge web app that is having issues with memory leak in
I have a huge database with 100's of tables and stored procedures. Using SQL
I have a huge database with some 100 tables and some 250 stored procedures.
In my web application I call a document can be huge. This document is

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.