public static string GetLoadUrl() { var page = new Administrators_LegalNotices_Default(); var url = new UrlBuilder("~/Administrators/LegalNotices/"); return(url.ToString()); }
private void initLegalNotice() { int?id = LegalNoticeIdParameter; if (id != null) { Database db = Global.GetDbConnection(); LegalNotice notice = db.GetLegalNotice((int)id); LegalNoticeVersion version = db.GetLatestLegalNoticeVersion((int)notice.Id); LegalNoticeId.Text = notice.Id.ToString(); Description.Text = notice.Description; Notice.Text = version == null ? string.Empty : version.Notice; } else { Response.Redirect(Administrators_LegalNotices_Default.GetLoadUrl()); } }
private void redirectHome() { Response.Redirect(Administrators_LegalNotices_Default.GetLoadUrl()); }