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

  • Home
  • SEARCH
  • 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 6677209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:05:21+00:00 2026-05-26T04:05:21+00:00

IGNORE THIS: I was rebinding the grid in the Onload method. I have a

  • 0

IGNORE THIS:

I was rebinding the grid in the Onload method.

I have a grid view with some textboxes, which I have to wrap in a UpdatePanel Control. So it looks like this:

<asp:UpdatePanel ID="upDistribution" runat="server" OnLoad="upDistribution_OnLoad">
    <ContentTemplate>
        <asp:GridView ID="gvDistributions" runat="server" AutoGenerateColumns="false"
            OnRowDataBound="gvDistributions_RowDataBound"
            CssClass="TallCells ContrastTable MaxWidth LeftHeaders"
            GridLines="Both" ShowFooter="True" style="">
            <RowStyle HorizontalAlign="Left"  />

            <EmptyDataTemplate>
                No pricing history data found.
            </EmptyDataTemplate>

            <Columns>
                <asp:TemplateField HeaderText="PriceA">
                    <ItemTemplate>

                        <asp:TextBox ID="txtPriceA" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="DistPrice">
                    <ItemTemplate>

                        <asp:TextBox ID="txtDistPrice" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
              </Columns>
        </asp:GridView>
    </ContentTemplate>
</asp:UpdatePanel>

There is a button “Save” when I would like to get the value entered for the txtboxes. If there is no UpdatePanel around the GV, i can can easily get the txtbox values like:

((TextBox)gvDistributions.Rows[0].Cells[0].FindControl("txtPriceA")).Text

But when, the GridView is wrapped with UpdatePanel, the above statement returns the value that was set on the page load.

How can I get the value of the text box without getting rid of the updatePanel. I need the update panel, because the number of rows, and dates are dependent on another variable in another user control.

  • 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-26T04:05:22+00:00Added an answer on May 26, 2026 at 4:05 am

    I was rebinding gridview in the onLoadMethod

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

Sidebar

Related Questions

I want to have URLs like this: some-company-name-deal-id-6.htm So the rewrite rule should ignore
The Situation (Ignore this it is boring): I have reports that I created using
I have a Linq2Sql query that looks like this: var data = from d
I have output with this format: /ignore-this/^/../I/want/this@ignore-this I am trying to use an awk
So I have this C .dll source code which I want to use in
I always ignore this option when creating a new database on SQL Server 2005,
Take this example code (ignore it being horribly inefficient for the moment) let listToString
This question here: MySQL: INSERT IGNORE or ON DUPLICATE KEY UPDATE with checking multiple
How can I ignore the attribute error I get when I issue this command?
This question may seem trivial, but I hope you won't ignore it. Before destroying

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.