Click here to Skip to main content
11,927,711 members (32,839 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET4
I have a gridview and have modlepopup in templatefield with linkbutton like here:
<asp:TemplateField ShowHeader="False">
<asp:LinkButton ID="LinkButton1" runat="server" AutoPostBack="TRUE" CausesValidation="False"
CommandName="Select" Text="Select">
<cc1:ModalPopupExtender ID="_ModelPOP_Grid"  runat="server" Enabled="false" TargetControlID="LinkButton1"
PopupControlID="Panel1" BackgroundCssClass="modalBackground" CancelControlID="_close">
and after that when click on link button then show modlepopupextendered but every time click on link button then modlepopupextendered showing old value while i want to updated value and modlepopupextendered have a gridview which bind on grivew selectedindexcahnged like this :
protected void Grid_Account_Sataus_SelectedIndexChanged2(object sender, EventArgs e)
//GridViewRow row = Grid_Account_Sataus.Rows[e.NewSelectedIndex];
GridViewRow row = Grid_Account_Sataus.SelectedRow;
Label ddNew_product1 = (Label)row.FindControl("lblid");
DataTable dt = objMaster.SubGridview(Session["comp_code"].ToString(), Session["conString"].ToString(), ddNew_product1.Text);
subgridview.DataSource = dt;
AjaxControlToolkit.ModalPopupExtender gfhg = (AjaxControlToolkit.ModalPopupExtender)row.FindControl("_ModelPOP_Grid");
gfhg.Enabled = true;
Posted 8-Mar-13 23:12pm
Edited 8-Mar-13 23:46pm
vipin chauhan delhi 9-Mar-13 4:56am

actually this is missing in my question but in my code this is present but this is not my problem my grid view not updated which is inside the model popup extender

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 9 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100