Groups | Blog | Home
all groups > asp.net webcontrols > october 2003 >

asp.net webcontrols : convert textbox value to integer


anonymous NO[at]SPAM discussions.microsoft.com
10/30/2003 1:54:01 PM
How to convert textbox value to integer?
Say txtBox1.text="10"


jline
10/30/2003 4:57:48 PM
If you are sure its an integer value.

int MyInt = Convert.ToInt32(txtBox1.text);

[quoted text, click to view]

AddThis Social Bookmark Button