gridview updating returns multiple values for same control

I have a gridview control that allows edit/updates.  After editing text in a textbox, I press the "update" button which triggers the gridview_onrowupdating() event.  I retrieve the value of the textbox using the "findcontrol" method.  Everything to this point is normal, nothing facy being done.

The problem is that when I have edited the text in the textbox, the TextBox.text value is old,new!  What's going on?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fernando SotoRetiredCommented:
Can you show the code in gridview_onrowupdating() event please.
dhenderson12Author Commented:
sure, here's the code:

protected void gvCallList_RowUpdating(object sender, GridViewUpdateEventArgs e)
       int idx = gvCallList.EditIndex;
       GridViewRow row = gvCallList.Rows[idx];

       TextBox tbPID = (TextBox)gvCallList.Rows[idx].FindControl("txtCallID");
       string pid = tbPID.Text;  // this returns 0,123  (0=original value  123=new value)

Open in new window

Fernando SotoRetiredCommented:
Is this the only code in the event?
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

dhenderson12Author Commented:
yep, that's it.  I'm just starting this particular part of the project, and couldn't get past this multiple value issue.  I'll add code to update the database later.
Fernando SotoRetiredCommented:
I have tested your code in a test application and I am NOT getting the same type of results you are getting in yours. Can you put together a test application that exhibits the same issue you are having in your application and then zip that complete test application and upload to to EE.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dhenderson12Author Commented:
I can try but it will take some time;  this is part of a much larger larger project.  You have confirmed, however, that there is something screwy going on in my project.  A couple of other points that might be relevant:  
1.  this is a vs2010 project using .net 4.0.
2.  although the pages are using a master page, the master page is really pretty "vanilla" without any  special javascript or code behind.
dhenderson12Author Commented:
I found the problem:  I had a corrupted VS 2010 installation.  I re-installed and the issue I was seeing disappeared.  Thanks for the response, Fernando.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.