// Textboxes //Issues protected void TextBoxIssueDescription_TextChanged(object sender, EventArgs e) { try { // checks CheckForDangerousInput(); var description = TextBox_Issue_Description.Text.Trim(); if (description == Empty) { throw new ApplicationException( "The Issue Description Textbox is empty."); } if (description.Length > 40) { var tooLongBy = description.Length - 40; throw new ApplicationException( $"The Issue description must be 40 characters or less. You need to shorten by {tooLongBy} characters"); } Issues.UpdateIssue(description, _IssueKey); Table_Issue_Edit.Visible = false; //CreateIssuesReport(); Msg.Text = Ok("The issue description has been updated"); } catch (Exception ex) { Msg.Text = Fail(ex.Message); LogAdminError(ex); } }