For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET Webcontrols > April 2005 > Comma appended to textboxes when retrieving value!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Comma appended to textboxes when retrieving value!
Victor

2005-04-27, 8:59 pm

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?

Victor

2005-04-29, 4:02 pm

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.


"Victor" wrote:

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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com