sorry, i made a mistake int _intValue; int.TryParse(TextBox.Text.Trim(), out _intValue); if the content of the text box is not an int you will get 0
2009/5/20 YiHai Liu <[email protected]> > u can do it this way > int _intValue; > int.TryParse(TextBox.Text.Trim()); > if the content of the text box is not an int > you will get 0 > > > 2009/5/18 sam <[email protected]> > >> >> hello folks, >> >> i am using a TextBox Contorl.Now i wanna to store TextBox value in int >> dataType. >> >> private int _intValue = TextBox.text.toString(); >> >> but it gives error.plz tell me how can i store dis. >> >> Thanx, >> Sam >> >> >
