I'm implementing the Daypilot open source (lite) plugin in my web forms project and have followed the tutorial (https://aspnet.daypilot.org/lite-tutorial/) so far but am stuck on stage 6 for event creation. I've followed the steps of setting TimeRangeSelectedJavaScript to "document.location='Bookings.aspx?startingtime={0}';" and then in the Bookings.aspx page declare the startingtime variable in the page_load event.
DateTime startingTime;
if (Request.QueryString["startingtime"] != null)
startingTime = Convert.ToDateTime(Request.QueryString["startingtime"]);
This variable being passed is to fill the booking form with the start time and date from what was highlighted on the calendar plugin however, any amount of tinkering that I've done hasn't worked and altering the code leaves me with "cannot implicitly convert type string to system.datetime" errors or vice versa.
I would have thought just letting the textbox (txtStart.Text) equal to startingTime would carry over the value from the timetables.aspx page where the calendar plugin is.
Can anyone help me on this as I've been stuck on this part for some time and haven't made any progress?
Thanks in advance,
Mark