Comma appended to textboxes when retrieving value!

V

Victor

I'm retrieving values from the textboxes that I created dynamically. However
I get commas appended to my text values and just a comma wherever the textbox
is empty. Dont know what is causing this. Any suggestions please?
 
V

Victor

I found out what the problem is. I was calling the function that creates my
dynamic text boxes in two places which caused the problem. The function was
called twice during each page load regardless of whether it was a postback or
not. One of them was in the Init method for postback. I put in a If statement
to load the control in the Init method only if it is a PostBack. That solved
it.
 

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

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top