Click here to Skip to main content
15,907,001 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<asp:UpdateProgress AssociatedUpdatePanelID="UpdatePanel2" runat="server" ID="UpdateProgress1">
                    <ProgressTemplate>
                        <div class="blockUI">
                            <div style="margin-left: auto; margin-right: auto; width: 200px;">
                                <img src="Images/loading.gif" alt="loading..." />
                            </div>
                        </div>
                    </ProgressTemplate>
                    </asp:UpdateProgress>

   <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
   <Triggers>
    <asp:AsyncPostBackTrigger ControlID="cmbCoverType" EventName="SelectedIndexChanged" />
   </Triggers>
                <ContentTemplate>
                <asp:Panel ID="pnlGridPrposalDetails" runat="server" ScrollBars="Auto">

        <asp:GridView id="gridProposalDetails" runat="server" CellPadding="4" AutoGenerateColumns="false" ShowFooter="true" Width="900px" >

            <Columns>
..
</Columns>
        </asp:GridView>
</asp:Panel>
           </ContentTemplate>
       </asp:UpdatePanel>
Posted
Comments
VICK 30-Oct-13 4:22am    
to which control this belongs to ??

ControlID="cmbCoverType"
sayed farhan 30-Oct-13 4:32am    
this is a dropdown control which is inside of gridview

<asp:DropDownList ID="cmbCoverType" runat="server" CssClass="cmbClass" AutoPostBack ="true" OnSelectedIndexChanged="cmbCoverType_SelectedIndexChanged"><br />
VICK 30-Oct-13 5:37am    
So your dropdown is in TemplateField of Gridview.?

1 solution

Have a look at the following link.

Update Panel triggered by DDL

New Link

the following link is having what OP found to sort out the same type of problem.
So Kindly have a look at the end of it.

Same Scenario Solution

Hope it will hlep. :)
 
Share this answer
 
v3
Comments
sayed farhan 30-Oct-13 4:46am    
Thanxs for reply.
but my dropdown is inside gridview so when i use your given approach its give me error
A control with ID 'cmbCoverType' could not be found for the trigger in UpdatePanel 'UpdatePanel2'.
VICK 30-Oct-13 4:51am    
answer updated with new link.
sayed farhan 30-Oct-13 4:53am    
means?
VICK 30-Oct-13 4:56am    
Mean another new link has been added. Kindly check that "New Link".
sayed farhan 30-Oct-13 4:56am    
here my problem is.
i have a two dropdown control in a gridview. on select indexchanged of first dropdown second dropdown is filled which take a time so i want to use asp:update progress but its give a error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900