I'm creating an appointment template and I have found lots of good examples on accessing the appointment properties there like this:
<AppointmentTemplate>
<p>
<h2><%# Eval("Subject") %></h2>
</p>
</AppointmentTemplate>
But I'm having trouble figuring out how to get to the attributes from here. I have an attribute called loc_descrip that I can get to this way in the codebehind: appointment.Attributes["loc_descrip"]. How would that be accessed in the AppointmentTemplate?
Edit to add: Ah, figured it out. I'll post what I did in case anyone else wonders the same thing:
Single quotes were the key: <%# Eval("Attributes['loc_descrip']") %>
Thanks!
<AppointmentTemplate>
<p>
<h2><%# Eval("Subject") %></h2>
</p>
</AppointmentTemplate>
But I'm having trouble figuring out how to get to the attributes from here. I have an attribute called loc_descrip that I can get to this way in the codebehind: appointment.Attributes["loc_descrip"]. How would that be accessed in the AppointmentTemplate?
Edit to add: Ah, figured it out. I'll post what I did in case anyone else wonders the same thing:
Single quotes were the key: <%# Eval("Attributes['loc_descrip']") %>
Thanks!