if (!IsPostBack)
            {
                if (PreviousPage != null)
                {
                    if (PreviousPage.IsCrossPagePostBack)
                    {
                        ListBox lb = PreviousPage.Master.FindControl("MainContent").FindControl("ListBox1") as ListBox;
                        ArrayList aryNumber = new ArrayList();
                        foreach (ListItem lt in lb.Items)
                            aryNumber.Add(lt.Value);
                        ObjectDataSource1.SelectParameters["SOHeadId"].DefaultValue = new ShareFunction().GetStringFromArrayList(aryNumber);
                        GridView1.DataBind();
                    }
                }
                else
                {
                }
            }SOHeadId 是GridView绑定时要的参数