Exemplo n.º 1
0
    private void LoadData()
    {
        Data objdata = new Data(Global.ConnectionSql);

        try
        {
            Footer obj = new Footer();
            obj.DataObject = objdata;
            FooterCollection col = new FooterCollection();
            col = obj.GetList(string.Empty);
            if (col != null)
            {
                rptFooter.DataSource = col;
                rptFooter.DataBind();
            }
        }
        catch (Exception ex)
        {
            Global.WriteLogError("LoadData()" + ex);
        }
        finally
        {
            objdata.DeConnect();
        }
    }
Exemplo n.º 2
0
    private FooterCollection LoadData()
    {
        Data             objdata = new Data(Global.ConnectionSql);
        FooterCollection col     = null;

        try
        {
            Footer obj = new Footer();
            obj.DataObject = objdata;
            col            = obj.GetList(txtSearch.Text.Trim());
        }
        catch (Exception ex)
        {
            Global.WriteLogError("LoadProduct()" + ex);
        }
        finally
        {
            objdata.DeConnect();
        }
        return(col);
    }