<script language="javascript" type="text/javascript"> function openmodalWinLunch() { var variable1 = "Lunch"; window.showModalDialog("ClockPopUP.aspx?code=" + variable1, "dialogWidth:290px;dialogHeight:270px,"); } </script>
protected void btnStop_Click(object sender, EventArgs e) { _nonProduction = new NonProduction(); if (Session["LastNonProdTimeID"] == null) { } else { int NonProdTimeEntryID = Convert.ToInt32(Session["LastNonProdTimeID"]); //Updating the TimeSpent isTimeSpentUpdated = _nonProduction.UpdateTimeSpentInDB(NonProdTimeEntryID); if (isTimeSpentUpdated == true) { string timespent = Convert.ToString(_nonProduction.GetTimeSpent(NonProdTimeEntryID)); //string msg = "Total time consumed in " +HiddenTaskname.Value.ToString()+": " + timespent.ToString() + " Minutes"; Response.Write("<script language='javascript'>window.close();</script>"); Response.End(); } else { } } }
ScriptManager.RegisterStartupScript(Page, GetType(), "CLOSE", "window.close();", true);
Response.Write("<script language='javascript'>window.close();</script>"); Response.End()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)