ASP.NET二手房屋租赁管理系统(11)
来源:xiaoniu168.com
作者:本站原创
添加时间:2011-12-30
点击数:25773
计算机毕业设计介绍:
4.7 详细信息展示页面
展示不同类型的房屋信息和留言记录。
以下是引用片段:
相关代码: if (tmpda.Rows.Count > 0) { this.lblFWNR.Text = tmpda.Rows[0]["房屋内容"].ToString(); this.lblJG.Text = tmpda.Rows[0]["价格"].ToString(); this.lblMJ.Text = tmpda.Rows[0]["面积"].ToString(); this.lblXQ.Text = tmpda.Rows[0]["小区"].ToString(); this.lblDZ.Text = tmpda.Rows[0]["地址"].ToString(); this.lblLX.Text = tmpda.Rows[0]["类型"].ToString(); this.lblZX.Text = tmpda.Rows[0]["装修"].ToString(); this.lblHX.Text = tmpda.Rows[0]["户型"].ToString(); this.lblZLC.Text = tmpda.Rows[0]["总楼层"].ToString(); this.lblSZLC.Text = tmpda.Rows[0]["所在楼层"].ToString(); this.lblCX.Text = tmpda.Rows[0]["朝向"].ToString(); this.lblLL.Text = tmpda.Rows[0]["楼龄"].ToString(); this.lblYT.Text = tmpda.Rows[0]["用途"].ToString(); this.lblPT.Text = tmpda.Rows[0]["配套"].ToString(); this.lblBZ.Text = tmpda.Rows[0]["备注"].ToString(); this.lblLXR.Text = "联系人:" + tmpda.Rows[0]["姓名"].ToString() + " 手机:" + tmpda.Rows[0]["手机"].ToString() + " 座机:" + tmpda.Rows[0]["座机"].ToString(); this.lblLXR0.Text = "联系人:" + tmpda.Rows[0]["姓名"].ToString() + " 手机:" + tmpda.Rows[0]["手机"].ToString() + " 座机:" + tmpda.Rows[0]["座机"].ToString();
} if (Request.QueryString["Tag"] == "QZ") { this.lblXXLX.Text = "求租信息"; } else if (Request.QueryString["Tag"] == "CZ") { this.lblXXLX.Text = "出租信息"; } else if (Request.QueryString["Tag"] == "QG") { this.lblXXLX.Text = "求购信息"; } else if (Request.QueryString["Tag"] == "CS") { this.lblXXLX.Text = "出售信息"; } if (Session["UserName"] == null) { this.Panel1.Visible = true; } else { this.Panel1.Visible = false; } } DataList1.DataSource = DataBase.Get_Table("select * from 留言 where 房屋编号=" + Request.QueryString["ID"] + " and 类型='" + Request.QueryString["Tag"] + "' order by 留言时间 DESC"); DataList1.DataBind();
|
<责任编辑:计算机毕业设计网(http://www.xiaoniu168.com)>