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)498.9K
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 OriginalGriff 325
1 Sergey Alexandrovich Kryukov 289
2 CPallini 275
3 DamithSL 260
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,422
2 Maciej Los 3,860
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,010


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 9 Mar 2013
Copyright © CodeProject, 1999-2014
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