Пример #1
0
    public static string GetLoadUrl()
    {
        var page = new Administrators_LegalNotices_Default();
        var url  = new UrlBuilder("~/Administrators/LegalNotices/");

        return(url.ToString());
    }
Пример #2
0
    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());
        }
    }
Пример #3
0
 private void redirectHome()
 {
     Response.Redirect(Administrators_LegalNotices_Default.GetLoadUrl());
 }