public void ShowData() { WebProject.BLL.BaseData.ZT_COM_CompanyInfo bll_CompanyInfo = new WebProject.BLL.BaseData.ZT_COM_CompanyInfo(); DataSet ds = bll_CompanyInfo.GetList(""); this.GridView1.DataSource = ds; this.GridView1.DataBind(); }
public void ShowCompanyInfo() { WebProject.BLL.BaseData.ZT_COM_CompanyInfo bll_CompanyInfo = new WebProject.BLL.BaseData.ZT_COM_CompanyInfo(); DataSet ds = bll_CompanyInfo.GetList(" 1=1 "); if (ds.Tables[0].Rows.Count > 0) { this.lblBody.Text = ds.Tables[0].Rows[0]["Body"].ToString(); } }