protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
int i = Convert.ToInt32(e.NewSelectedIndex);
GridViewRow row = GridView1.Rows[e.NewSelectedIndex];
Label LocationId = (Label)row.FindControl("LblLocationID");
Label MasterId = (Label)row.FindControl("LblMasterID");
Response.Write("script window.opener.parent.location='locationeditnew.aspx?location_id=" + Server.UrlEncode(LocationId.Text) + "&masterid=" + Server.UrlEncode(MasterId.Text) + "';this.close();/script");
}
2 comments:
GridView1_SelectedIndexChanging event does not fired.
it should be fired, send me a mail
Post a Comment