Click here to Skip to main content
15,886,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a gridview and have modlepopup in templatefield with linkbutton like here:
ASP.NET
<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 :
C#
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
Updated 8-Mar-13 22:46pm
v2
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900