Welcome Guest Search | Active Topics | Sign In | Register

Unable to cast object of type 'System.String' to type 'EO.Web.DateCollection' Options
Con Edison, Inc
Posted: Wednesday, July 13, 2011 1:53:01 PM
Rank: Newbie
Groups: Member

Joined: 7/13/2011
Posts: 1
Hello, I am using DatePicker and I am trying to pass two date values - start date and end date - from the view page to the controler page:

<asp:LinkButton ID="LnkBtn_report" runat="server"><%= Html.ActionLink("Show Outage", "ApprovedOutageDetails", New With {.controller = "ShoppingCart", .startdate = DP_startdate.SelectedDate, .enddate = DP_enddate.SelectedDate})%></asp:LinkButton>

I am navigating from one view to another, where I have my DatePicker control, but I am receiving the following error:

Unable to cast object of type 'System.String' to type 'EO.Web.DateCollection'.

Will you be so kind to help with this.

Thank you
eo_support
Posted: Wednesday, July 13, 2011 3:14:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

This is a cast error that you will need to troubleshoot yourself. You can find more information about EO.Web.DateCollection on our class reference, but we won't troubleshoot such coding error for our users in order to avoid abuse. Hope you understand.

Thanks!
Ali Hamdar
Posted: Friday, April 6, 2012 2:42:09 PM
Rank: Newbie
Groups: Member

Joined: 3/9/2012
Posts: 2
No it is not a casting issue. I am getting the same message:
Whenver I call dtpDate.SelectedDate i get this error. It seems to be something internal from your code!
eo_support
Posted: Friday, April 6, 2012 3:08:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Ali,

Please try to isolate the problem into a test page and post the test page. Once we have the test page we will try to run it here and see what we can find.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.