I want to make it so that when the user clicks on an event they are taking to that particular event page. I have tried the following which uses a query strong to pass the ID to the page.
<DayPilot:DayPilotCalendar ID="DayPilotCalendar1" runat="server"
BackColor="#FFFFD5" BorderColor="#000000" DataEndField="End"
DataSourceID="SqlDataSource1" DataStartField="Start" DataTextField="Name"
DataValueField="ID" DayFontFamily="Tahoma" DayFontSize="10pt" Days="30"
DurationBarColor="Blue" EventBackColor="#FFFFFF" EventBorderColor="#000000"
EventFontFamily="Tahoma" EventFontSize="8pt" EventHoverColor="#DCDCDC"
HourBorderColor="#EAD098" HourFontFamily="Tahoma" HourFontSize="16pt"
HourHalfBorderColor="#F3E4B1" HourNameBackColor="#ECE9D8"
HourNameBorderColor="#ACA899" HoverColor="#FFED95"
NonBusinessBackColor="#FFF4BC" StartDate="2012-09-01"
EventClickHandling="JavaScript" EventClickJavaScript="clickHandler(e);" />
As you can see there is the clickHandler(e); assigned to the EvenClick via Javascript and the script at the top of the page is.
<script type="text/javascript">
function clickHandler(e) { window.location = 'CourseDetails.aspx?CourseID=' + e.value(); }
</script>
However when you click on the event .....nothing happens. Have I done something wrong?
Many thanks for any help.