ASP.NET在线销售系统(8)

来源:xiaoniu168.com 作者:本站原创 添加时间:2011-12-10 点击数:27566

计算机毕业设计材料维护功能介绍:

4.2 材料信息维护页面

此模块主要是对材料信息的维护。展示材料信息列表,可以添加 修改 和删除材料信息。

以下是引用片段:

代码如下:
        DPath = Server.MapPath("..") + @"\";
        DPath = DPath + @"Image\";
        if (this.File1.PostedFile.FileName != "")
        {
            string[] temp = this.File1.PostedFile.FileName.Split('.');
            string strHzm = "." + temp[temp.Length - 1];

            Guid tmp = Guid.NewGuid();
            FileName = tmp.ToString() + strHzm;
            FileName1 = DPath + tmp.ToString() + strHzm;
            this.File1.PostedFile.SaveAs(FileName1);
            if (Session["imgname"] != null)
            {
                if (File.Exists(DPath + Session["imgname"].ToString()))
                {
                    File.Delete(DPath + Session["imgname"].ToString());
                }

4.3会员注册列表
显示会员注册的信息列表,可以查看详细信息和删除。

以下是引用片段:

代码如下:
            DataTable dt = DataBase.Get_Table("select * from hyxx");
            if (dt.Rows.Count < 1)
                dt.Rows.Add(dt.NewRow());
            this.GridView1.DataSource = dt.DefaultView;
            this.GridView1.DataBind();


〖资料来源:计算机毕业论文 www.xiaoniu168.com

第9页为计算机毕业论文订单功能介绍......

【联系方式】

【本站信誉】

用心做计算机毕业设计论文网