when i select the value from drop down these error come ...
input string was not in a correct format
Line 26: int a = Convert.ToInt32(ddlAccount.SelectedValue);
plz help me.. thanks
Line 26: int a = Convert.ToInt32(ddlAccount.SelectedValue);
plz help me.. thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Imran BashirPosted Jul 27, 2016, 5:00 AM
Francis SusaimichaelPosted Jul 27, 2016, 2:30 AM
I think either It is null or Non Integer number
@Ashiwani Sharma, the"Convert.ToInt32" will handleNULL values. So it is not an issue.I guess,the userwill try to pass the Non-Integer value.
Ashiwani SharmaPosted Jul 27, 2016, 12:51 AM
Ravi SangtaniPosted Jul 27, 2016, 12:35 AM
Francis SusaimichaelPosted Jul 26, 2016, 11:55 PM
ddlAccount.SelectedValue".Krishna Rajput SinghPosted Jul 26, 2016, 10:16 PM