protected void bind_container(string mode)
    {
        //have to use a collection as formview requires i IListSource, IEnumerable, or IDataSource.
        ContainerTableCollection _tbc = new ContainerTableCollection();

        if (mode != "Insert")
        {
            //get key id
            string _pid = get_token("pid");
            if(_pid != null)
            {
                int _containerid = wwi_func.vint(wwi_security.DecryptString(_pid, "publiship"));
                ContainerTable _tbl = new ContainerTable(_containerid);
                _tbc.Add(_tbl);
            }
            else
            {
                string[] _args = {  System.IO.Path.GetDirectoryName(Page.AppRelativeVirtualPath),
                                                "container_search",};
                string _url = string.Format("{0}\\{1}.aspx?", _args);
                Response.Redirect(_url);
            }
        }
        else
        {
            ContainerTable _tbl = new ContainerTable();
            _tbc.Add(_tbl);
        }
        
        //bind formview to collection
        this.fmvContainer.DataSource = _tbc;
        this.fmvContainer.DataBind(); 
    }
    protected void bind_container(string mode)
    {
        //have to use a collection as formview requires i IListSource, IEnumerable, or IDataSource.
        ContainerTableCollection _tbc = new ContainerTableCollection();

        if (mode != "Insert")
        {
            //get key id
            int _containerid = wwi_func.vint(wwi_security.DecryptString(get_token("pid").ToString(), "publiship"));

            ContainerTable _tbl = new ContainerTable(_containerid);
            _tbc.Add(_tbl);
        }
        else
        {
            ContainerTable _tbl = new ContainerTable();
            _tbc.Add(_tbl);
        }

        //bind formview to collection
        this.fmvContainer.DataSource = _tbc;
        this.fmvContainer.DataBind();
    }