Posted on: 9/10/2013 4:38:26 AM | Views : 678

the below is my code in which m trying to calculate tax amount ana it is showing nullreference exception......
Double Total1 = 0; bool isTotal1Valid = false; isTotal1Valid = Double.TryParse(TextBox154.Text, out Total1); if (!string.IsNullOrEmpty(TextBox154.Text) && !isTotal1Valid) { // this is the case when user enterted a wrong value in the box // you can show you user a message that price in in valid here ErrorLabel.Text = "Please enter valid Tax Total, it must be numeric"; return; }
...

Go to the complete details ...