Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ModelSpec modelSpec = new ModelSpec();

        modelSpec.Class    = "A";
        modelSpec.Color    = "Black";
        modelSpec.exterior = "exterior";
        modelSpec.Size     = "Size";
        modelSpec.OrderNo  = "OrderNo";
        modelSpec.Remark   = "Remark";
        servComm.Add(modelSpec);

        #region  页面加载
        if (!IsPostBack)
        {
            DataSet ds = dal.SelectAll();
            this.UserSelectGridView.DataSource = ds;
            UserSelectGridView.DataBind();
        }
    }