wtijsma
-
3/15/2005 5:19:24 PM
BUG: Integer value can't be null
Hi,
Document attributes with type decimal or integer with 'allow nulls' checked, still raise an error if they're left empty in a document, for example the sort order of menuitems.
[ArgumentException: System.FormatException: Input string was not in a correct format. at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.String.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ToInt32(Object value) at System.Data.Common.Int32Storage.Set(Int32 record, Object value) at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <> in DescriptionOrder Column. Expected type is Int32.] System.Data.DataColumn.set_Item(Int32 record, Object value) +100 System.Data.DataRow.set_Item(DataColumn column, Object value) +278 System.Data.DataRow.set_Item(String columnName, Object value) +72 Kentico.CMS.Form.BasicForm.SetDataRow(String columnName, Object value) Kentico.CMS.Form.BasicForm.SaveData(Object sender, EventArgs e) System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292
|