I like to do a conditional bind as the Bind() value may be null in which case I like to default it to the appropriate value.
The name ‘Bind’ does not exist in the current context
How can this be solved?
<EditItemTemplate>
<asp:DropDownList ID="ddlTimeZone" runat="server" DataSource='<%# TimeZoneInfo.GetZones().Select(s => s.Id) %>'
SelectedValue='<%# Eval("TimeZone") != null ? Bind("TimeZone") : "" %>'>
<asp:ListItem Text="" Value=""/>
</asp:DropDownList>
</EditItemTemplate>
Try
A more elegant solution (assuming C#) is