Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8832

ValidationHelper error

$
0
0
Hello I am working a webpart where I need to get an order id from the url, as Kentico say I'm using this code: string orderHash = QueryHelper.GetString(@o@, string.Empty); orderId = ValidationHelper.GetInteger(WindowHelper.GetItem(orderHash), 0); But when I try to use that orderId I'm getting this error: Message: Input string was not in a correct format. Exception type: System.FormatException Stack Trace: at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) at System.String.System.IConvertible.ToDouble(IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at CMS.Ecommerce.SKUInfoSerializer.Convert(XmlData data, String columnName, Type type) at CMS.Ecommerce.InfoSerializer`1.Deserialize(XmlData xmlData) at CMS.Ecommerce.OrderItemInfo.get_OrderItemSKU()Any idea what could be the error? (I am on kentico9)

Viewing all articles
Browse latest Browse all 8832

Trending Articles