what need considerer when convert result of gridcommandeventargs databinder.eval() in int32 (c#)?
for example: there code in .aspx
<%# databinder.eval(container.dataitem, "fielddb")%>
in aspx.cs have code:
int number = convert.toint32(((radtextbox)e.item.findcontrol("txtfielddb")).text);
i tried convert.toint32 , int.parse() not worked.
in visual studio error was:
an exception of type 'system.formatexception' occurred in mscorlib.dll not handled in user code
additional information: input string not in correct format.
but vague.
you error if type that's not convertible integer, since used convert.toint32 or int.parse.
make sure value binding convertible integer.
Comments
Post a Comment