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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:31:06+00:00 2026-05-28T16:31:06+00:00

Basically I want tO retrieve a TextBox1 which I add in to one of

  • 0

Basically I want tO retrieve a “TextBox1” which I add in to one of the new column (TemplateField) of the gridview and the rest of the column are data load from the sqldatasource control

i will want to indicate the “TextBox1” basic value that i calculated…so the result is when the default.aspx is loaded (which mean page load) the “TextBox1″ should have show the calculated value…sO now is how am I going to retrieve that ” TextBox1″ from the gridview in order for me to indicate a value

cause i dont need to use this code below as my gridview data is use the retrieve in sqldatasource in the design default.aspx

 DataTable dt = new DataTable();
dt.Columns.Add("Name");
dt.Columns.Add("Age");

DataRow dr = dt.NewRow();
dr["Name"] = "Chris Harris";
dr["Age"] = "40";
dt.Rows.Add(dr);

dr = dt.NewRow();
dr["Name"] = "Sean Williams";
dr["Age"] = "39";
dt.Rows.Add(dr);

dr = dt.NewRow();
dr["Name"] = "Paul Newcombe";
dr["Age"] = "38";
dt.Rows.Add(dr);

GridView1.DataSource = dt;
GridView1.DataBind();

SO how should do to retrieve that ” TextBox1″ from the gridview in order for me to indicate a value

<ItemTemplate>
                <table style="width: 73%; height: 31px;">
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label2" runat="server" Text="Calculation:"></asp:Label>
                        </td>
                        <td >
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </td>
                    </tr>

                </table>
            </ItemTemplate>
  • 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-28T16:31:07+00:00Added an answer on May 28, 2026 at 4:31 pm

    If this a row-by-row situation, you will probably want to do this in the RowDataBound event on the GridView:

    public void gridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
    
        if (e.Row.RowType == DataControlRowType.DataRow) {
            Textbox txt = (TextBox)e.Row.FindControl("Textbox1");
            //Do your processing here...
    
        }
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I want to have my program retrieve various variables from the hard drive
basically i want to hold a parameter that retrieve value from $.post() call like
Basically I want to retrieve all possible substring matches with n characters from a
I want to retrieve identity column value in ms access from an autoincremented column.
Okay, so basically I want to be able to retrieve keyboard text. Like entering
I basically want to open a browser window from Word using VBA that does
I just basically want to add about 20 and sometimes 80 Proximity Alerts with
Well basically I want to record the uri which produces an error when testing,
Bit confused with this one. Basically, I have a column in a table, and
Basically when my client apps start I want to retrieve a 'View of the

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.