资源简介

这是在网上花200元买的毕业设计,是网络书店,里面有系统源码和论文,其中论文包括所有的东西,有任务书,开题报告,翻译,答辩记录等17个文档,一应俱全 http://hi.baidu.com/yanzi52351 http://www.kilter.tk

资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using MyDBCS;

public partial class BookCont : System.Web.UI.Page
{
    protected void Page_Load(object sender EventArgs e)
    {
        if (!IsPostBack)
        {
            PageLoadBind();
        }
    }
    protected void PageLoadBind()
    {
        //引用类
        MyFunction Ft = new MyFunction();
        //取传值ID
        string Mid = Ft.UrlStr(“?“);
        if (Ft.CheckIsNumber(Mid))
        {
            //读出数据
            SqlDataReader Rd = DBSQL.MOleDbDataReader(DBSQL.MCon “select * from Book_Mes where Book_id=“ + Mid CommandType.Text null);
            if (Rd.Read())
            {
                this.BookName.InnerHtml = Rd[“Book_Name“].ToString();
                this.BookCompany.InnerHtml = Rd[“Book_Company“].ToString();
                this.BookCost.InnerHtml = Rd[“Book_Cost“].ToString();
                this.BookDiscount.InnerHtml = Rd[“Book_Discount“].ToString();
                this.BookEdit.InnerHtml = Rd[“Book_Edit“].ToString();
                this.BookImg.Src = “BookImg/“ + Rd[“Book_Img“].ToString();
                this.BookMemo.InnerHtml = Rd[“Book_Memo“].ToString();
                this.BookBasic.InnerHtml = Rd[“Book_Basic“].ToString();
                this.Booklist.InnerHtml = Rd[“Book_list“].ToString();
                this.BookSID.InnerHtml = typeselect(Rd[“Book_SID“].ToString()1);
                this.BookBID.InnerHtml = typeselect(Rd[“Book_BID“].ToString()2);
                this.Page.title = Rd[“Book_Name“].ToString()+“|“ + Application[“MyWebtitle“].ToString();
            }
            else
            {
                Page.title = “图书未找到! |“ + Application[“MyWebtitle“].ToString();
                BookName.InnerHtml = “此书,可能以被删除!“;
            }
        }
    }

    #region 查找类别
    public string typeselect(string str int i)
    {
        DataView Dv = new DataView();
        DataSet Ds = new DataSet();
        if (i == 1)
        {
            Ds = DBSqlTable.MDs(“select BT_NameBT_id from Book_BT“ CommandType.Text null);
        }
        else
        {
            Ds = DBSqlTable.MDs(“select ST_NameST_id from Book_ST“ CommandType.Text null);
        }
        Dv = Ds.Tables[0].DefaultView;
        if (i == 1)
        {
            Dv.RowFilter = “BT_Id=“ + str;
        }
        else
        {
            Dv.RowFilter = “ST_Id=“ + str;
        }
        if (Dv.Count != 0)
        {
            return Dv[0][0].ToString();
        }
        else
        {
            return ““;
        }
    }

    #endregion


    protected void Button1_Click(object sender EventArgs e)
    {
        string Uid=““;
        try
        {
  

评论

共有 条评论