ASP.NET影碟出租销售管理系统(9)

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

计算机毕业设计影碟信息浏览介绍:

4.2.6 YDSee(查看影碟信息)
  此页面显示影碟的详细信息,包括影碟名称、影碟类型、影碟图片、影碟描述、影碟价格、上架日期和购买数量。如图:
计算机毕业论文

以下是引用片段:

private void Page_Load(object sender, System.EventArgs e)
  {
   // 在此处放置用户代码以初始化页面
   if(!Page.IsPostBack)
   {
    //将影碟类别绑定显示在选择框中
    DataTable tmpda=new DataTable();
    tmpda=DataControl.GetDataTable("select * from YDLX order by Lxjb",Session["Dbase"].ToString());
    this.DropDownList1.DataValueField="lxbh";
    this.DropDownList1.DataTextField="Lxmc" ;
    this.DropDownList1.DataSource=tmpda;
    this.DropDownList1.DataBind();
    //在数据库中取得影碟信息,并显示在控件上
    tmpda=DataControl.GetDataTable("select * from YDXX where YDbh="+ Request.QueryString["YDbh"].ToString(), Session["Dbase"].ToString());
    if(tmpda.Rows.Count>0 )
    {
     this.TextBox1.Text=tmpda.Rows[0]["YDmc"].ToString();
     this.DropDownList1.SelectedValue=tmpda.Rows[0]["Lxbh"].ToString();
     this.TMs.InnerHtml =tmpda.Rows[0]["YDms"].ToString().Replace("\r\n","
");
     this.TextBox3.Text=tmpda.Rows[0]["YDjg"].ToString();
     this.TextBox4.Text=tmpda.Rows[0]["sjrq"].ToString();
     string DPath= @"image\";
     if(tmpda.Rows[0]["Tpwjm"].ToString()!="")
     {
      this.Timage.InnerHtml  ="+ DPath + tmpda.Rows[0]["Tpwjm"].ToString() ;
     }
    }
    if(Session["User"]==null)
    {
     this.LinkButton2.Visible=false;
    }
   }

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

第10页为计算机毕业论文用户注册功能介绍......

【联系方式】

【本站信誉】

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