F
Fanor
I have a textbox control bound to a integer field of a table.
Why when the value of the field is 0, the textbox. text show as "0.0000"
????
When I tried to cast this to a integer variable there is an error:
int j ;
j= int.Parse(textbox.text) //Error
which is correct because "0.0000" is not a numeric value.
The same happens with a executescalar method whe the result is 0
.......
string mc= mycmd.executescalar().tostring();
.......
after this mc is "0.0000" !!
TIA
Why when the value of the field is 0, the textbox. text show as "0.0000"
????
When I tried to cast this to a integer variable there is an error:
int j ;
j= int.Parse(textbox.text) //Error
which is correct because "0.0000" is not a numeric value.
The same happens with a executescalar method whe the result is 0
.......
string mc= mycmd.executescalar().tostring();
.......
after this mc is "0.0000" !!
TIA