Hi all,
I am sorry if this question has already been answered before.
I have the scheduler that uses ObjectDataSource, which returns a list of EventItem, where EventItem is my custom class. While I was able to map all the fields that the scheduler needed, I would like to bind some other fields from EventItem. What will be the easiest way to do it on ascx page?
Ideally, I would like something like that (which doesn't work now):
Thank you.
I am sorry if this question has already been answered before.
I have the scheduler that uses ObjectDataSource, which returns a list of EventItem, where EventItem is my custom class. While I was able to map all the fields that the scheduler needed, I would like to bind some other fields from EventItem. What will be the easiest way to do it on ascx page?
Ideally, I would like something like that (which doesn't work now):
<
AppointmentTemplate
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text='<%# Eval("Title") %>'></
asp:Label
>
<
asp:Label
ID
=
"Label4"
runat
=
"server"
Text
=
"Location:"
></
asp:Label
>
<
asp:Label
ID
=
"Label2"
runat
=
"server"
Text='<%# Eval("Location") %>'></
asp:Label
>
<
asp:Label
ID
=
"Label3"
runat
=
"server"
Text
=
"Time"
></
asp:Label
>
<
asp:Label
ID
=
"Label5"
runat
=
"server"
Text='<%# PDConvert.ToDateTime(Eval("Start")).ToString("t") +
((PDConvert.ToDateTimeN(Eval("Start"))==null) ? "" : " - " + PDConvert.ToDateTime(Eval("End")).ToString("t") )%>'></
asp:Label
>
</
AppointmentTemplate
>
Thank you.