Click here to Skip to main content
15,882,464 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
I arranged the Grid view with edit,update,cancel and delete buttons..
My question is set the edit button with update panel triggers..how can i try this?

XML
<asp:UpdatePanel ID="up_pnl" runat="server">
        <ContentTemplate>


C#
<pre lang="xml"><asp:GridView ID="GVTraderdueReport" runat="server" EmptyDataText="No Records Found"
                       Style="margin-bottom: 6px" BorderColor="#BDBDBD" AllowPaging="true" PageSize="20"
                       OnPageIndexChanging="GVTraderdueReport_PageIndexChanging" CssClass="center" AutoGenerateColumns="false"
                       DataKeyNames="tradername" OnRowUpdating="GVTraderdueReport_RowUpdating" OnRowCancelingEdit="GVTraderdueReport_RowCancelingEdit"
                       OnRowEditing="GVTraderdueReport_RowEditing" OnRowCommand="GVTraderdueReport_RowCommand"
                        HeaderStyle-BackColor="#b0c4de">
                       <Columns>
                           <asp:TemplateField HeaderText="S.No." FooterStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                               <ItemTemplate>
                                   <%# Container.DataItemIndex + 1 %>
                               </ItemTemplate>
                           </asp:TemplateField>
                           <asp:BoundField HeaderText="TraderName" DataField="tradername" ItemStyle-HorizontalAlign="Center"
                               ReadOnly="true" />
                           <asp:BoundField HeaderText="Due Amount" DataField="totaldue" ItemStyle-HorizontalAlign="Center"
                               ReadOnly="true" />
                           <asp:TemplateField HeaderText="Received Amount">
                               <EditItemTemplate>
                                   <asp:TextBox runat="server" ID="txt_recamt" Width="90px"></asp:TextBox>
                                   <asp:RequiredFieldValidator ID="RFVrecamt" runat="server" ControlToValidate="txt_recamt"
                                       Display="None" ErrorMessage="Must Enter Received Amount" ValidationGroup="duereport"></asp:RequiredFieldValidator>
                                   <asp:ValidatorCalloutExtender ID="VCErecamt" runat="Server" TargetControlID="RFVrecamt" />
                               </EditItemTemplate>
                           </asp:TemplateField>


XML
</Columns>
                       <EmptyDataTemplate>
                           No Records Found
                       </EmptyDataTemplate>
                   </asp:GridView>
 </ContentTemplate>

XML
<Triggers>
       <asp:AsyncPostBackTrigger ControlID="" />
   </Triggers>
   </Updatepanel>






Here ,which Control id i enter..please help me
Posted
Updated 17-Oct-13 19:40pm
v3

1 solution

Based on your question, you should take a deep look at AsyncPostBackTrigger[^].
 
Share this answer
 

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