コード例 #1
0
 protected void SubmitAndNewButton_Click(object sender, EventArgs e)
 {
     if (JobTextBox.Text != "")
     {
         CVModule myCVModule = new CVModule();
         myCVModule.setUserID((String)Session["userID"]);
         ConfirmationLabel.Text = myCVModule.insertSeekingJob(JobTextBox.Text, JobTypeDropDownList.SelectedValue);
         JobTextBox.Text = String.Empty;
     }
     else
     {
         ConfirmationLabel.Text = "Please enter a job position.";
     }
 }
コード例 #2
0
 protected void SubmitAndCloseButton_Click(object sender, EventArgs e)
 {
     if (JobTextBox.Text != "")
     {
         CVModule myCVModule = new CVModule();
         myCVModule.setUserID((String)Session["userID"]);
         ConfirmationLabel.Text = myCVModule.insertSeekingJob(JobTextBox.Text, JobTypeDropDownList.SelectedValue);
         FunctionCallerLabel.Text = "<script type='text/javascript'>closeWindow();</script>";
         Response.Redirect("ApplicantsJobs.aspx");
     }
     else
     {
         ConfirmationLabel.Text = "Please enter a seeking job.";
     }
     //Page.ClientScript.RegisterOnSubmitStatement(typeof(Page), "closeWindow", "window.onunload = closeWindow();");
     //Page.ClientScript.RegisterOnSubmitStatement(typeof(Page), "closePage", "closeWindow();");
 }