ASP.NET体育赛事信息发布网站(6)

来源:xiaoniu168.com 作者:本站原创 添加时间:2011-11-05 点击数:27227

计算机毕业设计前台功能介绍:

4 系统实现
4.1 主界面
在IE里运行本网站,出现网站的主界面,包括赛程赛果、球队球员、联赛排名、数据统计和CBA讨论五大模块。如图:
计算机毕业论文

4.2 球队信息列表
管理员维护界面点击左侧菜单栏里的球队信息管理,右侧显示球队信息列表,包括球队名称、所在城市、体育馆名称、体育馆人数、现任主教练和冠军次数,新球队、编辑、删除按钮,以及通过输入球队名称关键字进行检索显示符合条件的信息。如图所示:
计算机毕业论文

以下是引用片段:

 protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string idKey = this.GridView1.DataKeys[Convert.ToInt32(e.CommandArgument)]["Qdid"].ToString();
        if (e.CommandName == "Mod")
        {
            //传递标志  跳转页面
            Response.Redirect("QdEdit.aspx?ID=" + idKey);
        }
        else if (e.CommandName == "Del")
        {
            if (db.GetData("select * from 球员 where  Qdid=" + idKey + "").Rows.Count > 0)
            {
                Page.
                return;
            }
            //删除指定路径下边的图片文件
            string DPath;
            if (Server.MapPath("").Substring(Server.MapPath("").Length - 1, 1) == @"\")
            {
                DPath = Server.MapPath("");
            }
            else
            {
                DPath = Server.MapPath("") + @"\";
            }
            string idbz = this.GridView1.DataKeys[Convert.ToInt32(e.CommandArgument)]["Bz"].ToString();
            string idYz = this.GridView1.DataKeys[Convert.ToInt32(e.CommandArgument)]["Qdyz"].ToString();
            DPath = DPath + @"..\PicList\Qd\";
            if (File.Exists(DPath + idbz))
            {
                File.Delete(DPath + idbz);
            }
            if (File.Exists(DPath + idYz))
            {
                File.Delete(DPath + idYz);
            }
            //删除球队信息记录

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

第7页为计算机毕业论文球队信息编辑功能介绍......

【联系方式】

【本站信誉】

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