show more information than the ID
Asked by Anonymous
16 years ago.
Hello,
I'm trying to show more information than the ID when I click on an event, but I don't know how. I've tried some code, but nothing works, only the "e.value;"
I show you my code, I hope you can help me:
ASPX:
<DayPilot:DayPilotCalendar ID="DayPilotCalendar1" runat="server" Days="7"
DataEndField="ende_time"
DataStartField="start_time" DataTextField="event"
DataValueField="username" OnEventClick="DayPilotCalendar1_EventClick" EventClickHandling="PostBack" />
code-behind:
protected void DayPilotCalendar1_EventClick(object sender, EventClickEventArgs e)
{ Label1.Text = "Selected event: " + e.Value; }
This code shows in the Label the primary key, in my case is this the username, but I want also to show the start time and end time and which event this is.
Best regards