Question : Ajax Grid View

Hi,

I want to use ajax for the grid view. can you please help me. how do I place the OnRowCancelingEdit, OnRowEditing etc in triggers or how do I use ajax for these.

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
 <div class="form">
            <asp:ScriptManager ID="ExchangeGroupsScriptManager" runat="server" />
            <asp:Label ID="EditExchangeGroupsLabel" runat="server" ForeColor="Red" />
            <asp:GridView ID="EditExchangeGroupsGrid" runat="server" AutoGenerateColumns="False"
                ShowFooter="True" CellSpacing="1" DataKeyNames="ExchangeGroupID" GridLines="None"
                CssClass="products-table" HeaderStyle-CssClass="header" RowStyle-CssClass="row"
                OnRowCancelingEdit="EditExchangeGroupsGrid_RowCancelingEdit" OnRowCommand="EditExchangeGroupsGrid_RowCommand"
                OnRowEditing="EditExchangeGroupsGrid_RowEditing" SelectedIndex="1" AutoGenerateSelectButton="True"
                OnSelectedIndexChanged="EditExchangeGroupsGrid_Manage" OnRowUpdating="EditExchangeGroupsGrid_RowUpdating"
                AllowPaging="True" OnPageIndexChanging="EditExchangeGroupsGrid_PageIndexChanging">
                  <Triggers>
            <asp:AsyncPostBackTrigger controlid="EditExchangeGroupImageButton" eventname="CommandName" />
 </Triggers>     <Triggers>
 <asp:AsyncPostBackTrigger controlid="UpdateExchangeGroupImageButton" eventname="CommandName" />
  </Triggers>     <Triggers>
  <asp:AsyncPostBackTrigger controlid="EditExchangeGroupImageButton" eventname="CommandName" />
   </Triggers>     <Triggers>
   <asp:AsyncPostBackTrigger controlid="CancelImageButton" eventname="Click" />
   </Triggers>     <Triggers>
    <asp:AsyncPostBackTrigger controlid="ManageExchangeGroupImageButton" eventname="CommandName" />
        </Triggers>
                <RowStyle CssClass="row"></RowStyle>
                <Columns>
                    <asp:TemplateField ShowHeader="False">
                        <EditItemTemplate>
                            <asp:ImageButton ID="EditExchangeGroupImageButton" runat="server" CausesValidation="false"
                                CommandName="Update" ToolTip="Update" ImageUrl="~/Images/neu/media-floppy.png" />
                            <asp:ImageButton ID="UpdateExchangeGroupImageButton" runat="server" CausesValidation="false"
                                CommandName="Cancel" ToolTip="Cancel" ImageUrl="~/Images/neu/edit-undo.png" />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ID="CancelImageButton" runat="server" CausesValidation="false" CommandName="Edit"
                                ToolTip="Edit" ImageUrl="~/Images/neu/accessories-text-editor.png" />
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:ImageButton ID="AddImageButton" runat="server" ToolTip="Add" CausesValidation="false"
                                ImageUrl="~/Images/neu/list-add.png" CommandName="Add" />
                        </FooterTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Manage">
                        <ItemTemplate>
                            <asp:ImageButton ID="ManageExchangeGroupImageButton" runat="server" CausesValidation="false"
                                CommandName="Manage" ToolTip="Update" ImageUrl="~/Images/neu/media-floppy.png" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ExchangeGroupID">
                        <EditItemTemplate>
                            <asp:Label ID="EditExchangeGroupIDLabel" runat="server" Text='<%# Bind("ExchangeGroupID") %>'></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="ItemExchangeGroupIDLabel" runat="server" Text='<%# Eval("ExchangeGroupID") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Name">
                        <EditItemTemplate>
                            <asp:TextBox ID="EditExchangeGroupNameTextBox" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="AddExchangeGroupNameTextBox" runat="server" Width="300px"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <asp:Label ID="ItemExchangeGroupNameLabel" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="UpdatedBy">
                        <EditItemTemplate>
                            <asp:Label ID="EditExchangeGroupUpdatedByLabel" runat="server" Text='<%# Bind("UpdatedBy") %>'></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="ItemExchangeGroupUpdatedByLabel" runat="server" Text='<%# Eval("UpdatedBy") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Updatedat">
                        <EditItemTemplate>
                            <asp:Label ID="EditExchangeGroupUpdatedatLabel" runat="server" Text='<%# Bind("UpdatedAt") %>'></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="ItemExchangeGroupUpdatedatLabel" runat="server" Text='<%# Eval("UpdatedAt") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="header"></HeaderStyle>
            </asp:GridView>
        </div>
        <div style="clear: both">
        </div>

Answer : Ajax Grid View

Almost missed this... add the following

nat (inside) 0 access-list nat0_outbound
Random Solutions  
 
programming4us programming4us