When using the bind method in the calendar control I get the error: The name 'Bind' does not exist in the current context. How Can I do this correctly? I need a way of checking against null values. it is within a Gridview control
<asp:Calendar ID="Calendar1" runat="server" SelectedDate='<%# string.IsNullOrEmpty(Bind("valid_date").ToString()) ? "0000-00-00 00:00:00.000": Bind("valid_date").ToString() %>' ></asp:Calendar>
GridViewor some other similar databound control? Where isvalid_from_datecoming from?