Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6714973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:33:29+00:00 2026-05-26T08:33:29+00:00

I have a VB.NET / ASP.NET web application. I added a dropdownlist into FooterTemplate

  • 0

I have a VB.NET / ASP.NET web application. I added a dropdownlist into FooterTemplate of a Gridview. And I used ajax for postbacks. But when I add the dropdown to the triggers, vs gives me that error :

A control with ID ‘DropDownList2’ could not be found for the trigger in UpdatePanel ‘UpdatePanel1’.

ASP.NET code is like that :

                   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:GridView ID="GridView2" runat="server" Width="329px" AutoGenerateColumns="False"
                                    Font-Names="Arial" Font-Size="11pt" 
                                    AlternatingRowStyle-BackColor="#C2D69B" HeaderStyle-BackColor="green"
                                    AllowPaging="True" ShowFooter="True" OnPageIndexChanging="OnPaging" 

                                    Style="margin-right: 0px" BackColor="White" BorderColor="#336666" 
                                    BorderStyle="Double" BorderWidth="3px" CellPadding="3" 
                                    GridLines="Horizontal">
                                    <AlternatingRowStyle BackColor="#C2D69B" />
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:Button ID="lnkRemove" runat="server" CommandArgument='<%# Eval("il_ad")%>'
                                                    OnClientClick="return confirm('S&#304;LMEK &#304;STED&#304;&#286;&#304;N&#304;ZDEN EM&#304;N M&#304;S&#304;N&#304;Z?')"
                                                    Text="S&#304;L" OnClick="DeleteDURUM"></asp:Button>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                <asp:Button ID="btnAdd" runat="server" Text="EKLE" OnClick="AddNewDURUM" />
                                            </FooterTemplate>
                                        </asp:TemplateField>

                                        <asp:CommandField EditText="DE&#286;&#304;&#350;T&#304;R" ButtonType="Button"
                                            CancelText="&#304;PTAL" DeleteText="S&#304;L" UpdateText="KAYDET" ControlStyle-Width="70PX"
                                            CausesValidation="False">
                                            <ControlStyle Width="70px" />
                                        </asp:CommandField>
                                        <asp:TemplateField ItemStyle-Width="30px" HeaderText="YTM No">
                                            <ItemTemplate>
                                                <asp:Label ID="lblytm_id" runat="server" Text='<%# Eval("ytm_id")%>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle Width="30px"></ItemStyle>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="&#304;l">
                                            <ItemTemplate>
                                                <asp:Label ID="il_ad" runat="server" Text='<%# Eval("il_ad")%>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="il_ad" runat="server" Text='<%# Eval("il_ad")%>'></asp:TextBox>
                                            </EditItemTemplate>




<!-- Dropdownlist is here : -->
                                            <FooterTemplate>
                                                <asp:DropDownList ID="DropDownList2" runat="server" Width= "120px" DataSourceID="iller_yukle" AutoPostBack="True">
                                                </asp:DropDownList>
                                                  </FooterTemplate>

                                        </asp:TemplateField>
                                    </Columns>
                                    <FooterStyle BackColor="White" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#336666" ForeColor="#000066" HorizontalAlign="Left" />
                                    <RowStyle BackColor="White" ForeColor="#000066" />
                                    <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                                    <SortedAscendingCellStyle BackColor="#F7F7F7" />
                                    <SortedAscendingHeaderStyle BackColor="#487575" />
                                    <SortedDescendingCellStyle BackColor="#E5E5E5" />
                                    <SortedDescendingHeaderStyle BackColor="#275353" />
                                </asp:GridView>

                                </div>
                            </ContentTemplate>



                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="GridView2" />
                            <asp:AsyncPostBackTrigger ControlID="DropDownList2" /> <!-- Error is here -->

                            </Triggers>
                        </asp:UpdatePanel>

where is the mistake, I couldn’t figure it out, thanks..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:33:30+00:00Added an answer on May 26, 2026 at 8:33 am

    Generally the mistake is that you don’t need to specify triggers for controls inside an UpdatePanel till you don’s set ChildrenAsTriggers="false" on that UpdatePanel

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Yesterday I added a custom MembershipProvider to an ASP.NET web application, but when I
I have a Crystal Report used in an ASP.NET web application that I've just
We have an ASP.NET web application which uses ASP.NET Ajax. We open it from
I have added a service reference to my asp.net web application (originally it was
I have just added routing in a new asp.net 4 web forms application, and
I have a asp.net web application which has a number of versions deployed on
I have an ASP.NET web application which does the following: Reads an Excel file.
I have one asp.net web application. It is using two membership provider. Two sign-in
I have an ASP.NET web application the entire site is browsed over HTTPS using
I have an asp.net web application written in C# using a SQL Server 2008

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.