Ejemplo n.º 1
0
        private void ListsaishiDetail()
        {
            try
            {
                int S_Id = GetNoticeId();

                if (S_Id == 0)
                {
                    Response.Redirect("~/");
                    return;
                }

                DataTable data = BLL.SaishiManager.SelectsaishiById(S_Id);

                if (data != null)
                {
                    SaishiListView.DataSource = data;
                    SaishiListView.DataBind();
                }
            }
            catch (Exception ex)
            {
                Label2.Text = ex.Message;
            }
        }
Ejemplo n.º 2
0
        private void BindSaishi()
        {
            DataTable dt = BLL.SaishiManager.SelectAll();

            if (dt != null && dt.Rows.Count != 0)
            {
                SaishiListView.DataSource = dt;
                SaishiListView.DataBind();
            }
        }