please help me

Posted by Prabhu4042 under ASP.NET on 10/20/2008 | Views : 1697 | Status : [Member] | Replies : 1
i need code for click the button open the popup window screen and then when close the popup windown it will slowly disappearing popup window screen using c# in

regrads & Thanks


Posted by: Meena_mehra on: 10/20/2008 [Member] Starter

-------------this function in source side-----------
<script language="javascript" type="text/javascript">
function openPopup(strOpen)
open(strOpen, "frmEmpHP-OT_Detail", "status=1, width=300, height=200, top=100, left=300");

---------this function in server side-----------

buttonname.Attributes.Add("OnClick", "'frmEmpHPOTDetail.aspx?EmpId=" + gdvEmployeeList.Rows[i].Cells[0].Text + "&date=" + date + "','frmEmpHPOTDetail','width=850, height=500, menubar=no, scrollbars=yes, resizable=yes,')");

---------upper this function should written in the page from which u want to open the window

now below these 2 lines should written on the pop window so that after close it display the previous page-- submit button/close button_ click

Response.Write("<script language=javascript>window.close();</script>");

Prabhu4042, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response