2
Answers

How to convert the String To Inteeger in dropdown value

 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)