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
|
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!
|
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!
|
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!
|