Code

 

 

datatable.select

 

    public DataTable FillTable(string M_where, DataTable m_table)
    {
        DataTable _temp = m_table.Clone();
        DataRow[] _row = m_table.Select(M_where);

        foreach (DataRow _r in _row)
        {

            _temp.Rows.Add(_r.ItemArray);
        }
        return _temp;
    }

 

ViewState["BackUrl"] = Request.UrlReferrer.ToString();

 

    protected void Button1_Click1(object sender, EventArgs e)
    {
        if (ViewState["BackUrl"] != null)
        {
            Response.Redirect(ViewState["BackUrl"].ToString());
        }
    }

posted on 2009-03-11 17:14  茹古涵今  阅读(1262)  评论(0编辑  收藏  举报