Click here to Skip to main content
Rate this: bad
good
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">
<itemtemplate>
<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">
</itemtemplate>
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;
subgridview.DataBind();
AjaxControlToolkit.ModalPopupExtender gfhg = (AjaxControlToolkit.ModalPopupExtender)row.FindControl("_ModelPOP_Grid");
gfhg.Enabled = true;
 
}
Posted 8-Mar-13 23:12pm
Edited 8-Mar-13 23:46pm
(no name)499.7K
v2
Comments
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 Zoltán Zörgő 300
1 CHill60 185
2 Peter Leow 170
3 /\jmot 160
4 Pikoh 125
0 Sergey Alexandrovich Kryukov 9,383
1 OriginalGriff 6,881
2 Peter Leow 4,607
3 Zoltán Zörgő 4,284
4 CHill60 2,892


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