cannot convert int to numeric c# code example
Example 1: convert string to number C#
int x = 0;
Int32.TryParse(TextBoxD1.Text, out x);
Example 2: how to convert string to int in c#
string a = ("2");
int b = Convert.ToInt16(a)
int x = 0;
Int32.TryParse(TextBoxD1.Text, out x);
string a = ("2");
int b = Convert.ToInt16(a)