<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" /> </Triggers> <ContentTemplate> <%--post GridView--%> <asp:GridView ID="posts" runat="server"> <Columns> <asp:TemplateField> <ItemTemplate> <%--Comments Gridview--%> <asp:GridView ID="comments" runat="server"></asp:GridView> <%--a Textbox and bUtton For sending new Comment--%> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Button" /> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> </ContentTemplate> </asp:UpdatePanel> protected void Button1_Click(object sender, EventArgs e) { posts.DataSource = GetData(); posts.DataBind(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)