Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     id = TWRequest.GetQueryInt("id", 1);
     if (id != 0)
     {
         model = bll.GetModel(id);
     }
 }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        id = TWRequest.GetQueryInt("id");
        if (id != 0)
        {
            model    = bll.GetModel(id);
            title    = model.seo_title;
            keyword  = model.seo_keywords;
            describe = model.seo_description;
            bll.UpdateField(id, "click=click+1");
        }

        data_news.DataSource = new Tea.BLL.basic().GetList(0, "basic_where='news'", "basic_sort");
        data_news.DataBind();
    }