I am using an asp.net details view. I added an entry into the details view like so…
<asp:BoundField DataField="DTMON_F" HeaderText="Monday Start:" InsertVisible="False"
ReadOnly="True" SortExpression="DTMON_F" Visible="false" />
<asp:TemplateField HeaderText="*Monday Start: " SortExpression="DTMON_F">
<EditItemTemplate>
<asp:DropDownList ID="ddlMondayStartHour" runat="server">
<asp:ListItem Value="6">6am</asp:ListItem>
<asp:ListItem Value="7">7am</asp:ListItem>
<asp:ListItem Value="8">8am</asp:ListItem>
<asp:ListItem Value="9">9am</asp:ListItem>
</asp:DropDownList>
:
<asp:DropDownList ID="ddlMondayStartMin" runat="server">
<asp:ListItem Value="00">00</asp:ListItem>
<asp:ListItem Value="15">15</asp:ListItem>
<asp:ListItem Value="30">30</asp:ListItem>
<asp:ListItem Value="45">45</asp:ListItem>
</asp:DropDownList>
:
<asp:DropDownList ID="ddlMonAMPM" runat="server">
<asp:ListItem Value="AM">AM</asp:ListItem>
<asp:ListItem Value="PM">PM</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblMonday" runat="server" Text='<%# Bind("DTMON_F") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
Now I need to FIRST concatinate the values from the dropdown then bind the data gathered in the edit template form the 3 dropdowns. How might I do that?
You can use the updated event of the detailsview which is called after you changed your values. The you can concatinate your values by code.