Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int    readmeId = AlwaysConvert.ToInt(Request.QueryString["ReadmeId"]);
            Readme readme   = ReadmeDataSource.Load(readmeId);

            if (readme == null)
            {
                Response.Redirect(ReturnUrl);
            }
            Page.Title           = readme.DisplayName;
            ReadmeText.Text      = readme.ReadmeText;
            OkButton.NavigateUrl = ReturnUrl;
        }
Ejemplo n.º 2
0
 protected void Page_Init(object sender, System.EventArgs e)
 {
     _ReadmeId = AlwaysConvert.ToInt(Request.QueryString["ReadmeId"]);
     _Readme   = ReadmeDataSource.Load(_ReadmeId);
     if (_Readme == null)
     {
         Response.Redirect("Default.aspx");
     }
     Caption.Text         = string.Format(Caption.Text, _Readme.DisplayName);
     InstructionText.Text = string.Format(InstructionText.Text, _Readme.DisplayName);
     BindReadmes();
     ProductsGrid.DataSource = _Readme.DigitalGoods;
     ProductsGrid.DataBind();
 }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     _ReadmeId = AlwaysConvert.ToInt(Request.QueryString["ReadmeId"]);
     _Readme   = ReadmeDataSource.Load(_ReadmeId);
     if (_Readme == null)
     {
         Response.Redirect("Default.aspx");
     }
     if (!Page.IsPostBack)
     {
         DisplayName.Text = _Readme.DisplayName;
         IsHtml.Checked   = _Readme.IsHTML;
         ReadmeText.Text  = _Readme.ReadmeText;
     }
     DigitalGoodsGrid.DataSource = _Readme.DigitalGoods;
     DigitalGoodsGrid.DataBind();
     Caption.Text = string.Format(Caption.Text, _Readme.DisplayName);
     AbleCommerce.Code.PageHelper.SetHtmlEditor(ReadmeText, HtmlButton);
 }