public override bool PerformSave() { //normalize path Alias = Alias.Replace("/", "\\"); var sheet = ApplicationContext.Current.Services.FileService.GetStylesheetByName(Alias); if (sheet == null) { sheet = new Stylesheet(Alias.EnsureEndsWith(".css")); ApplicationContext.Current.Services.FileService.SaveStylesheet(sheet); } _returnUrl = string.Format("settings/stylesheet/editStylesheet.aspx?id={0}", HttpUtility.UrlEncode(sheet.Path)); return(true); }