hi
I used below code to conver textbox value to int:
if (!IsPostBack)
{
int rahn2 = int.Parse(Txtrahn2.Text);
int rahn1 = int.Parse(Txtrahn1.Text);
}
but this error happen:
Server Error in '/' Application.
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.FormatException: Input string was not in a correct format. Source Error:
Line 27: int rahn2 = int.Parse(Txtrahn2.Text);
Line 28: int rahn1 = int.Parse(Txtrahn1.Text);
Line 29: }
|
Best regards
neda