Dumb question, but why cant you do cInt(whateverstring) Or in your example below: txt_TotalCostB4Vat.Text= cint(txt_NoOfNights.Text) * cint(txt_RoomRate.Text)
-----Original Message----- From: Arindam [mailto:[EMAIL PROTECTED] Sent: Saturday, April 02, 2005 1:05 PM To: [email protected] Subject: [AspNetAnyQuestionIsOk] Problem while converting the value of a text box Can anyone rectify the statement bellow. I have tried "Convert.ToInt32", "(int)" casting etc. to make the value numeric, so i can do calculation. DONT tell me "eval" function of JavaScript, I want to write everything in my codebehind file. txt_TotalCostB4Vat.Text= (int.Parse(txt_NoOfNights.Text)) * (int.Parse(txt_RoomRate.Text)) Thanks Thanks & Regards Arindam Web Designer & Developer Yahoo! India Matrimony: Find your life partneronline. [Non-text portions of this message have been removed] _____ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] cribe> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of <http://docs.yahoo.com/info/terms/> Service. [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
