when i select the value from drop down these error come ...
input string was not in a correct format
CodeLine 26: int a = Convert.ToInt32(ddlAccount.SelectedValue);
plz help me.. thanks
CodeLine 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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Krishna Rajput SinghRank #605 · 4K reputationPosted Jul 26, 2016, 6:16 PM EDT
Francis SusaimichaelRank #466 · 5.4K reputationPosted Jul 26, 2016, 7:55 PM EDT
ddlAccount.SelectedValue".Ravi SangtaniRank #1,947 · 751 reputationPosted Jul 26, 2016, 8:35 PM EDT
Ashiwani SharmaRank #5,816 · 285 reputationPosted Jul 26, 2016, 8:51 PM EDT
Francis SusaimichaelRank #466 · 5.4K reputationPosted Jul 26, 2016, 10:30 PM EDT
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.
Imran Bashir120 reputationPosted Jul 27, 2016, 1:00 AM EDT