update panel ( update parent panel data when child panel gridview select click)http://forums.asp.net/t/1764613.aspx/1?update+panel+update+parent+panel+data+when+child+panel+gridview+select+click+Wed, 01 Feb 2012 07:26:59 -050017646134810075http://forums.asp.net/p/1764613/4810075.aspx/1?update+panel+update+parent+panel+data+when+child+panel+gridview+select+click+update panel ( update parent panel data when child panel gridview select click) <p>Hello</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I have an 2 update panel&nbsp;</p> <p>parent has label control &nbsp;,child has gridview both are set to conditional I want to update the lable control of parent when I select row of gridview inside child panel .&nbsp;</p> 2012-02-01T07:12:49-05:004810105http://forums.asp.net/p/1764613/4810105.aspx/1?Re+update+panel+update+parent+panel+data+when+child+panel+gridview+select+click+Re: update panel ( update parent panel data when child panel gridview select click) <p><strong><pre class="prettyprint">&lt;asp:ScriptManager ID=&quot;ScriptManager1&quot; runat=&quot;server&quot;&gt; &lt;/asp:ScriptManager&gt; &lt;asp:UpdatePanel ID=&quot;UpdatePanel1&quot; UpdateMode=&quot;Conditional&quot; runat=&quot;server&quot;&gt; &lt;ContentTemplate&gt; &lt;asp:Label ID=&quot;label&quot; runat=&quot;server&quot; Text=&quot;Label&quot;&gt;&lt;/asp:Label&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; &lt;asp:UpdatePanel ID=&quot;UpdatePanel2&quot; UpdateMode=&quot;Conditional&quot; runat=&quot;server&quot;&gt; &lt;ContentTemplate&gt; &lt;asp:GridView ID=&quot;grid&quot; runat=&quot;server&quot; AutoGenerateSelectButton=&quot;True&quot; OnSelectedIndexChanging=&quot;grid_SelectedIndexChanging&quot;&gt; &lt;/asp:GridView&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) this.BindGrid(); } private void BindGrid() { this.grid.DataSource = new String[] { &quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot; }; this.grid.DataBind(); } protected void grid_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) { this.label.Text = grid.Rows[e.NewSelectedIndex].Cells[1].Text; this.UpdatePanel1.Update(); }</pre> </p> <p>in grid_RowCommand or button event, after assigning value to the the parent label control then call the Update method of the Parent UpdatePanel</p> </strong> <p></p> <p>&nbsp;</p> 2012-02-01T07:26:59-05:00