Textbox postbax comma bug

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????
 
G

Guest

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
 
K

Keith Doran

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top