Hi,
I have a Radgrid which is used to display some values on the UI. Some fields are simple dropdowns while others are text box.
The issue here is We have used a coding where in if no data is entered then textbox should be default filled with zero.This was because other wise it would have thrown exception "input string not in correct format".
Now with some enhancements there is a need that if I enter nothing in the text box, then the value should be filled with null.
I know this is possible in framework 3.5 but application is bulit on dot Net 2.0 where in concept of "nullabel " wont work.
Have a look at the present coding that fills zero.
Any alternate way out ?
Thanks,
Tarang
I have a Radgrid which is used to display some values on the UI. Some fields are simple dropdowns while others are text box.
The issue here is We have used a coding where in if no data is entered then textbox should be default filled with zero.This was because other wise it would have thrown exception "input string not in correct format".
Now with some enhancements there is a need that if I enter nothing in the text box, then the value should be filled with null.
I know this is possible in framework 3.5 but application is bulit on dot Net 2.0 where in concept of "nullabel " wont work.
Have a look at the present coding that fills zero.
decimal
rccAggInto2UomMult = 0;
if
(((TextBox)row.Cells[27].Controls[1]).Text !=
""
)
rccAggInto2UomMult = Convert.ToDecimal(((TextBox)row.Cells[27].Controls[1]).Text);
Any alternate way out ?
Thanks,
Tarang