<asp:WebPartZone ID="WebPartZone1"> <ZoneTemplate> <asp:DropDownList Title="Product Categories" ID="DropDownCategories" runat="server" AutoPostBack="True" DataSourceID="Categories" DataTextField="CategoryName" DataValueField="CategoryName"></asp:DropDownList> </ZoneTemplate> </asp:WebPartZone>The ObjectDataSource is outside the webpartzone at the bottom of the page:
<asp:ObjectDataSource ID="ProductsByCategory" runat="server" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetProductsByCategory" TypeName="productsTableAdapters.ProductsByCategoryTableAdapter"> <SelectParameters> <asp:ControlParameter ControlID="DropDownCategories" DefaultValue="1" Name="catid" PropertyName="SelectedValue" Type="Int32" /> </SelectParameters> </asp:ObjectDataSource>ControlID in the ObjectDataSource is not found. How can I reference the dropdown?