cant create a SelectedIndexChanged event for dropdownlist in gridview FooterTemplate

freakyxgoth

New Member
I have a gridview with a dropdownlist for the products description in the footer template.There is no way to create a SelectedIndexChanged in the IDE and writing it out manually produces an error? How to create code to handle the Selection change? I need to populate the product ids when the product description is selected. Here is what the template field markup is:\[code\]<asp:TemplateField HeaderText="description" SortExpression="description"> <FooterTemplate> <asp:DropDownList ID="ddlProductDesc" runat="server" DataSourceID="edsProductDesc" DataTextField="description" OnSelectedIndexChanged="ddlProductDesc_SelectedIndexChanged"> </asp:DropDownList> <%--<asp:TextBox ID="tbInsertdescriptiton" Width="350" runat="server"></asp:TextBox>--%> </FooterTemplate> <ItemTemplate> <asp:Label ID="lblProdDesc" runat="server" Text='<%# Bind("description")%>'></asp:Label> </ItemTemplate> </asp:TemplateField>\[/code\]
 
Back
Top