protected void SaveButton_Click(Object sender, EventArgs e) { // VALIDATE UNIQUE REQUEST PATH if (RedirectDataSource.LoadForSourceUrl(SourcePath.Text.Trim()) != null) { UniqueSourcePathValidator.IsValid = false; return; } if (Page.IsValid) { Redirect redirect = new Redirect(); redirect.SourceUrl = SourcePath.Text.Trim(); redirect.TargetUrl = TargetPath.Text.Trim(); redirect.UseRegEx = true; redirect.Store = AbleContext.Current.Store; redirect.Save(); // RESET THE ADD NEW FORM SourcePath.Text = String.Empty; TargetPath.Text = String.Empty; RedirectsGrid.DataBind(); } }