Venkata Subbareddy

Venkata Subbareddy

  • 1k
  • 774
  • 100.1k

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)