I need convert String of input of table database to Integer value in C# .NET 4 and tried this code inspired from this Link:
int i;
string Entry_Level = Convert.ToInt32("2,45");
i = Convert.ToInt32(Entry_Level);
But I've this error:
Compiler Error Message: CS0029: Cannot implicitly convert type 'int' to 'string'
EDIT
Solved with:
decimal i;
string Entry_Level = "2,45";
i = Convert.ToDecimal(Entry_Level);
Response.Write(i.ToString());
Response.End();
In output I've 2,45, many thanks!