public void btnSaveGrade_Click(object sender, System.EventArgs e)
        {
            try
            {
                // Check permissions.
                if (!SharedSupport.SecurityIsAllowed(courseId, SecurityAction.USERASSIGNMENT_EDIT))
                {
                    throw new Exception(SharedSupport.GetLocalizedString("Global_Unauthorized"));
                }

                Nav1.Feedback.Text = String.Empty;

                if (studentID != 0)
                {
                    StudentAssignmentM assignment = StudentAssignmentM.Load(studentID, assignmentId);
                    if (assignment != null)
                    {
                        assignment.GradeComments   = txtComments.Text.ToString();
                        assignment.OverallGrade    = txtGrade.Text.ToString();
                        assignment.LastUpdatedDate = DateTime.Now;

                        //Save the updated User Assignment
                        assignment.Update();
                        Response.Redirect("Submissions.aspx?CourseID=" + Request.QueryString.Get("CourseID") + "&AssignmentID=" + Request.QueryString.Get("AssignmentID"), false);
                    }
                }
                else
                {
                    throw new Exception(SharedSupport.GetLocalizedString("FacultyGradeSubmission_InvalidUserAssignmentID") + Request.QueryString.Get("UserAssignmentID").ToString());
                }
            }
            catch (System.Exception ex)
            {
                Nav1.Feedback.Text = ex.Message.ToString();
            }
        }