Converting Dropdown list to int
Posted
by ar31an
on Stack Overflow
See other posts from Stack Overflow
or by ar31an
Published on 2010-06-14T16:55:53Z
Indexed on
2010/06/14
17:02 UTC
Read the original article
Hit count: 199
c#
hello mates i am trying to store value from dropdown list to an integer but i am getting an exception Input string was not in a correct format.
int experienceYears = Convert.ToInt32("DropDownList1.SelectedValue");
please help.
© Stack Overflow or respective owner