Venkata Subbareddy

Venkata Subbareddy

  • 955
  • 705
  • 95.6k

How to convert the String To Inteeger in dropdown value

May 27 2015 7:17 AM
 hi,
How to convert the String To Inteeger in dropdown value 
 suppose my dropdown value "Bangloor" and my count value 2..
o/p: Bangloor+2 Actually This is perfectly Answer..
 But I got only DropDown value   so in the below i insert my code let me know Any Modifications..
int count = Convert.ToInt16(com.ExecuteScalar()) + 2;
dp1.Text = "dp1.SelectedValue" + count;
 

Answers (2)