I have a grid view
I want to open pop up window once I clicked on Emp ID
But I have to pass EMP ID to pop up window so that all my data will get displayed related to emp id
please che kmuy code below
function popUp(URL)
{
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=750,height=500,left = 550,top = 350');");
}
<asp:TemplateField HeaderText ="StudentID" >
<ItemTemplate >
<asp:LinkButton runat ="server" ID="LinkStudentID" Text='<%#Eval("StudentID") %>' OnClick="javascript:popUp('/Demographics/EMPDemographicsPopUp.aspx?EMPID=<%#DataBinder.Eval(Container.DataItem, "EMPID")%>"> </asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>