Пример #1
0
    /// <summary>
    /// 
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnsave_Click(object sender, EventArgs e)
    {
        bool _isPaid = false;

        if (isPaid.Checked)
            _isPaid = true;

        watchoutedit _commEdit = new watchoutedit(txtheader.Text, fckcontent.Value, DateTime.Now,_isPaid,txtTicker.Text);
        _commEdit.UpdateWatchOutNews(Int32.Parse(Request.QueryString["id"].ToString()));
        Response.Redirect("watchoutlisting.aspx");
    }
Пример #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         watchoutedit _watchEdit = new watchoutedit();
         watchoutlisting _listing = new watchoutlisting();
         _listing = _watchEdit.GetWatchOutByArticle(Int32.Parse(Request.QueryString["id"].ToString()));
         txtheader.Text = _listing.ArticleTitle;
         isPaid.Checked = _listing.IsPaid;
         fckcontent.Value = _listing.ArticleDesc;
         txtTicker.Text = _listing.Ticker;
     }
 }