search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

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
Comment posted by Lauwens
16 years ago.
Label1.Text = "Selected event: " + e.Value + " (" + e.Start.ToString() + " - " + e.End.ToString() + ") " + e.Text; like so ?
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.