Friday, 22 March 2013

Convert: Data Type from one to another

Convert string to integer:
string str;
int id;
id=int.parse(str);

Convert string to boolean:
string str;
boolean id;
id=convert.ToBoolean(str);
Convert.ToBoolean(radiobtn_hrds.SelectedValue)

No comments:

Post a Comment