Click here to Skip to main content
15,915,501 members

Comments by Gitanjali Singh (Top 103 by date)

Gitanjali Singh 17-Feb-14 4:10am View    
Try this.
double amount = double.Parse(txtAmount.Text);
double persons = double.Parse(txtPerson.Text);
Refer:http://stackoverflow.com/questions/19049906/input-string-was-not-in-a-correct-format-in-double-parse
Gitanjali Singh 17-Feb-14 3:35am View    
Use Parse instead of TryParse.
double amount = Double.Parse(txtAmount.Text);
double persons = Double.Parse(txtPerson.Text);
Gitanjali Singh 17-Feb-14 3:22am View    
Please Check updated solution.This is working fine on my end.
Gitanjali Singh 17-Feb-14 3:14am View    
Debug and check the value of textbox txtAmount.What error you are getting?
Gitanjali Singh 17-Feb-14 3:01am View    
check updated solution.