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