Пример #1
0
 protected void cmdSaveFile_Click(object sender, EventArgs e)
 {
     if (TemplateController.SaveTemplate(txtTitle.Text, txtDescription.Text, ModuleContext, false,
                                         MaxNumberOfRecords()))
     {
         Response.Redirect(Globals.NavigateURL(ModuleContext.TabId), true);
     }
     else
     {
         panConfirm.Visible     = true;
         panSave.Visible        = false;
         cmdSaveFile.Enabled    = false;
         txtDescription.Enabled = false;
         txtTitle.Enabled       = false;
     }
 }
Пример #2
0
 protected void cmdConfirmOverwriteFile_Click(object sender, EventArgs e)
 {
     TemplateController.SaveTemplate(txtTitle.Text, txtDescription.Text, ModuleContext, true,
                                     MaxNumberOfRecords());
     Response.Redirect(Globals.NavigateURL(ModuleContext.TabId), true);
 }