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 56:                                         </td>
Line 57:                                          <td class="GridDataR">
Line 58:                                             <%#FormatFunctions.C_Format.M_FormatComma(DataBinder.Eval(Container.DataItem,"PERC_HOLD").ToString(),"2","0")%> 
Line 59:                                         </td>
Line 60:                                     </tr>	                  

Source File: d:\WWW\satgurucap\MutualFund\ucHoldings.ascx    Line: 58

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7488695
   System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) +146
   System.Decimal.Parse(String s) +25
   FormatFunctions.C_Format.M_FormatComma(String StrNum, String NumFormat, String option) +90
   ASP.mutualfund_ucholdings_ascx.__DataBind__control3(Object sender, EventArgs e) in d:\WWW\satgurucap\MutualFund\ucHoldings.ascx:58
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +124
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
   System.Web.UI.WebControls.Repeater.DataBind() +75
   SunteckWealth.MutualFund.ucHoldings.Page_Load(Object sender, EventArgs e) +87
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9157; ASP.NET Version:2.0.50727.9157