Input String not in Correct Format

2 posts, 0 answers
  1. bslaght
    bslaght avatar
    184 posts
    Member since:
    Jun 2006

    Posted 10 Apr 2008 Link to this post

    I have two decimal fields and am using EditForms in RadGrid Prometheus, with AutomaticUpdates/Insert/Delete enabled.

    The insert and delete work fine, but on update I get an "Input String not in correct format error"  It seems to have to do with the decimal fields.  I have posted my Stack Trace.  Please advise what I am doing wrong.

    Execution Error
    Input string was not in a correct format.
      at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
      at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
      at System.Decimal.Parse(String s, NumberStyles style, IFormatProvider provider)
      at System.Convert.ToDecimal(String value, IFormatProvider provider)
      at System.String.System.IConvertible.ToDecimal(IFormatProvider provider)
      at System.Convert.ChangeType(Object value, TypeCode typeCode, IFormatProvider provider)
      at System.Web.UI.WebControls.Parameter.GetValue(Object value, String defaultValue, TypeCode type, Boolean convertEmptyStringToNull, Boolean ignoreNullableTypeChanges)
      at System.Web.UI.WebControls.SqlDataSourceView.AddParameters(DbCommand command, ParameterCollection reference, IDictionary parameters, IDictionary exclusionList, String oldValuesParameterFormatString)
      at System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues)
      at System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback)
      at Telerik.Web.UI.GridTableView.PerformUpdate(GridEditableItem editedItem, Boolean suppressRebind)
      at Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source)
      at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e)
      at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
      at Telerik.Web.UI.GridEditFormItem.OnBubbleEvent(Object source, EventArgs e)
      at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
      at System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e)
      at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
      at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
      at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
      at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    0.0221968155170559 0.000909
    Brett
  2. bslaght
    bslaght avatar
    184 posts
    Member since:
    Jun 2006

    Posted 10 Apr 2008 Link to this post

    Fixed using RadInput Numeric Textbox
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top