modalpopupextender and commas appearing in my textbox asp.net

Posted by SLC on Stack Overflow See other posts from Stack Overflow or by SLC
Published on 2009-10-19T10:50:41Z Indexed on 2010/03/20 2:31 UTC
Read the original article Hit count: 788

Filed under:
|

Some weird stuff is happening, I am converting an application that used to use javascript to open another web page in a tiny window for data input to use a ModalPopupExtender.

It seems to work fine, but in the OK event, when I do txtData.Text (the textbox in my modal popup), it comes back with a comma before the data, so if you type "Rabbit", it comes back as ",Rabbit".

Also when I use it multiple times, in another place where I might click to show it, and type "Fish", it starts coming back with stuff like ",Rabbit,,Fish"

I don't know why or how to stop it from doing this... any ideas?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about modalpopupextender