protected void SubmitAndNewButton_Click(object sender, EventArgs e) { if (SoftSkillTextBox.Text != "") { CVModule myCVModule = new CVModule(); myCVModule.setUserID((String)Session["userID"]); FunctionCallerLabel.Text = myCVModule.insertSoftSkill(SoftSkillTextBox.Text); SoftSkillTextBox.Text = String.Empty; } else { ConfirmationLabel.Text = "Please fill in all the details."; } }
protected void SubmitAndCloseButton_Click(object sender, EventArgs e) { if (SoftSkillTextBox.Text != "") { CVModule myCVModule = new CVModule(); myCVModule.setUserID((String)Session["userID"]); FunctionCallerLabel.Text = myCVModule.insertSoftSkill(SoftSkillTextBox.Text); FunctionCallerLabel.Text = "<script type='text/javascript'>closeWindow();</script>"; } else { ConfirmationLabel.Text = "Please fill in all the details."; } //Page.ClientScript.RegisterOnSubmitStatement(typeof(Page), "closePage", "closeWindow();"); //Page.ClientScript.RegisterOnSubmitStatement(typeof(Page), "closeWindow", "window.onunload = closeWindow();"); }