Textbox postbax comma bug

  • Thread starter Thread starter Keith Doran
  • Start date Start date
K

Keith Doran

I have a webform page that contains a textbox control. The textbox is
initialized by the codebehind module and contains a value when the page
is first
loaded. The user can then edit the textbox if they choose to or leave
it as is.

The strange behavior I'm seeing is that when the form is posted back to
the server, the textbox's text property contains the new value followed by a
comma
and then the original value. eg. if the control was initialized to
contain "Joe"
and the user deletes that value and enters "Stan" the textbox1.text
property
contains "Stan,Joe" immediately after the postback. The MaintainState
property
has no effect on this behavoir. If the user didn't touch the textbox
it would
contain "Joe,Joe" Even textboxes that were originally blank contain a
comma when
posted back.


Any idea why this is happening????
 
Sounds like you have 2 Controls with the same name on the client. Are you storing a hidden input or anything else that might have the same name/id of your textbox?

-Joe
 
Hi Joe,

No, no hidden inputs and have checked all code and have no controls
with the same name. I'm totally at a loss.
 
Back
Top