Opening Popup on Click of LinkButton in DataGrid
i have create datagrid ,In datagrid contain template column.
In template column i add Linkbutton and linkbutton text Databound "CadidateId"
('<%#DataBinder.Eval(Container.DataItem,"CadidateI d")%>').
when i click at linkbutton popupwindow show.popupwindow contain in all information of candiate.
i m doing like this:
At Parent Page:
protected void btnlink(object sender Event.Args e)
{
LinkButton lk=(LinkButton)sender;
Session["lkbtn"]=lk.Text;
string s="<script>window.open('popup.aspx','null','height =200,width=100')</script>";
this.RegisterClientScriptBlock("showpopup",s);
}
At Child Page:
string Id=Session["lkbtn"].ToString();
So get Id of Candidate and show all information at popup.aspx.
But Problem is Happen when i close popup.aspx at click on close button
and refresh parent page. popup.aspx Page Again open .
i want that when refresh parent Page PopWindow Page should be open.
How is Possible in C#,.Net
Please Help Me.
I m Highly Thanking You
sanjay
|