protected void postMessageButton_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(messageTextBox.Text) && messageTextBox.Text != "Eg: Is anyone available for tennis match at 5PM on Friday?") { using (FlexibleTennisLeagueDataContext dataContext = new FlexibleTennisLeagueDataContext()) { dataContext.InsertMessage(StoredData.User.UserId, StoredData.User.Division, messageTextBox.Text); } messagesRadGrid.Rebind(); } }