Click here to Skip to main content
11,638,881 members (75,191 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET4.0
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 22:12pm
Edited 8-Mar-13 22:46pm
(no name)502K
vipin chauhan delhi at 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
0 Sergey Alexandrovich Kryukov 314
1 Suvendu Shekhar Giri 240
2 stibee 213
3 Mika Wendelius 208
4 Richard Deeming 190
0 OriginalGriff 9,061
1 Sergey Alexandrovich Kryukov 8,773
2 Mika Wendelius 7,027
3 Suvendu Shekhar Giri 2,494
4 F-ES Sitecore 2,438

Advertise | Privacy | Mobile
Web04 | 2.8.150728.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