Exemple #1
0
 protected void submitButton_Click(object sender, EventArgs e)
 {
     if (!StoredData.User.AccessExpired.Value && !StoredData.User.TempDivision.Value)
     {
         using (FlexibleTennisLeagueDataContext dataContext = new FlexibleTennisLeagueDataContext())
         {
             dataContext.UpdateMatchPointRankingLogByMatchIdUserId(Convert.ToInt32(matchIdHiddenField.Value), StoredData.User.UserId, ownServeRadSlider.Value, ownForehandRadSlider.Value, ownBackhandRadSlider.Value, ownVolleyRadSlider.Value, ownDropRadSlider.Value, ownOverheadRadSlider.Value, ownCourtCoverageRadSlider.Value, opponentServeRadSlider.Value, opponentForehandRadSlider.Value, opponentBackhandRadSlider.Value, opponentVolleyRadSlider.Value, opponentDropRadSlider.Value, opponentOverheadRadSlider.Value, opponentCourtCoverageRadSlider.Value);
             string closingScript = "<script type='text/javascript'>Sys.Application.add_load(function () {closeRadWindowAndShowAlert('Match rating successfully recorded.');}); </script> ";
             ScriptManager.RegisterStartupScript(this, this.GetType(), "radalert", closingScript, false);
         }
     }
 }