Server Error in '/' Application.

Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:


Line 729:            {
Line 730:                lblmsp.Text = aff.Tables[0].Rows[0]["sellingprice"].ToString();
Line 731:                if (Convert.ToDouble(litmrp.Text) == Convert.ToDouble(lblmsp.Text))
Line 732:                {
Line 733:                    string mrp = litmrp.Text;

Source File: e:\vhosts\zoobop.com\httpdocs\product-detail.aspx.cs    Line: 731

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) +14619532
   System.Convert.ToDouble(String value) +65
   product_detail.loadproductdetail() in e:\vhosts\zoobop.com\httpdocs\product-detail.aspx.cs:731
   product_detail.Page_Load(Object sender, EventArgs e) in e:\vhosts\zoobop.com\httpdocs\product-detail.aspx.cs:29
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0