Solution1
Try Integer.Parse() or Integer.TryParse()
Solution2
Convet.ToInt32(Application["ApplicationVisitorCount"].ToString())
Solution3
string num = "123"; int parse =int.Parse(num);
Solution4
string s = "123"; int byCasting = (int)s; int byParsing = int.Parse(s); int result; int.TryParse(s,out result); int byConverting = Convert.ToInt32(s);
'Programming > ASP.NET' 카테고리의 다른 글
ASP.NET 기초강좌 (0) | 2015.02.09 |
---|---|
[ASP.NET] link (0) | 2014.12.10 |
[ASP.NET] Literal (0) | 2014.12.10 |
Creating Cascading DropDownLists in ASP.Net (연속적인 셀렉트박스 만들기) (0) | 2014.12.02 |