<cc2:OboutDropDownList ID="ddCategory" runat="server"
DataSourceID="dsCategories" DataValueField="Category"
DataTextField="Category" AppendDataBoundItems="true"
onselectedindexchanged="ddCategory_SelectedIndexChanged">
<asp:ListItem></asp:ListItem>
</cc2:OboutDropDownList>
<asp:SqlDataSource ID="dsCategories" runat="server"
ConnectionString="<%$ ConnectionStrings:SmashHausConnectionString %>"
SelectCommand="SELECT DISTINCT [Category] FROM [Categories]"></asp:SqlDataSource>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="ddCategory" InitialValue="" runat="server" ErrorMessage="Category Required">*</asp:RequiredFieldValidator>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<% Response.Write( DateTime.Now.Second.ToString()); %>
<cc2:OboutDropDownList ID="ddSubCategory" runat="server" DataSourceID="dsSubCategories"
DataTextField="SubCategory" AppendDataBoundItems="true">
<asp:ListItem></asp:ListItem>
</cc2:OboutDropDownList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddCategory" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
|