Ejemplo n.º 1
0
        private void DataBand()
        {
            DataTable td = getTable.CarryOutSqlGeDataTable("SELECT TOP 9 * FROM [XcXm].[dbo].[tblVideoInfo] WHERE IsShow=1");

            reptm.DataSource = td;
            reptm.DataBind();
        }
Ejemplo n.º 2
0
        private void DataBindPerson()
        {
            DataTable td = null;

            if (ViewState["Typeid"] != null)
            {
                td = getTable.CarryOutSqlGeDataTable("SELECT * FROM [XcXm].[dbo].[tblProductTypeTwoInfo] WHERE TypeIsVisiable=1 and typeID= " + ViewState["Typeid"].ToString());
            }
            reptmTwoType.DataSource = td;
            reptmTwoType.DataBind();
        }