コード例 #1
0
 protected void AddOrUpdateScholarShipDetails(object sender, EventArgs e)
 {
     if (Session[SessionVariables.UserIdInSession] != null)
     {
         foreach (ListItem studentItem in chkStudentList.Items)
         {
             if (studentItem.Selected)
             {
                 if (!string.IsNullOrEmpty(txtScholarShipAmountSanctioned.Text.Trim()))
                 {
                     PageDataService.AddScholarShipDetailAdoNet(Convert.ToInt32(studentItem.Value),
                                                                Convert.ToInt32(ddlScholarShipType.SelectedValue),
                                                                Convert.ToInt32(txtScholarShipAmountSanctioned.Text.Trim()),
                                                                Convert.ToInt32(ddlAcademicYear.SelectedValue),
                                                                Convert.ToInt32(
                                                                    Session[SessionVariables.UserIdInSession].ToString()));
                 }
             }
         }
     }
     Response.Redirect(Request.RawUrl, false);
 }