Accessing appointment attributes from AppointmentTemplate

1 posts, 0 answers
  1. Matt
    Matt avatar
    29 posts
    Member since:
    Oct 2011

    Posted 22 Nov 2011 Link to this post

    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!
Back to Top