|
-
July 3rd, 2006, 08:27 PM
#1
What the equivalent of the Val (VB.Net) function in C#
Hi,
I am trying to do multiplication of the two double number from the textbox.
It is giving me FormatException for the blank textbox and if the textbox is having purely string value.
Code is like this
double temp = double.Parse(txtLI_JobsAffected3.Text) * double.Parse(txtLI_Impact3.Text);
txtLI_Total3.Text = System.Convert.ToString(temp);
Can anybody tell me how to deal with this?
I am new to C#.
Anyhelp will be appreciated.
Thanks
Amit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|