fangwu/fangwumod.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using dao;
public partial class fangwu_fangwumod : System.Web.UI.Page
{
    string id = "";

    	 /**
	*房屋信息修改页面
	*/  
    protected void Page_Load(object sender, EventArgs e)
    {
        id = Request.QueryString["id"].ToString();//获取从信息列表传递房屋信息主键
        if (!IsPostBack)
        {

            string sql = "select * from fangwu where fwid='" + id + "'";//准备查询记录的sql
            DataTable dt = DBHelper.GetDataSet(sql);//执行sql语句
            if (dt.Rows.Count > 0)
            {//如果有记录 进行赋值
               this.fw.Text =dt.Rows[0]["fw"].ToString();
this.lc.Text =dt.Rows[0]["lc"].ToString();
this.hx.Text =dt.Rows[0]["hx"].ToString();
this.mj.Text =dt.Rows[0]["mj"].ToString();
this.dz.Text =dt.Rows[0]["dz"].ToString();
this.mph.Text =dt.Rows[0]["mph"].ToString();
this.l.Text =dt.Rows[0]["l"].ToString();


     
            }
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
    //修改房屋信息 操作
      string fw=this.fw.Text;//房屋
string lc=this.lc.Text;//楼层
string hx=this.hx.Text;//户型
string mj=this.mj.Text;//面积
string dz=this.dz.Text;//地址
string mph=this.mph.Text;//门牌号
string l=this.l.Text;//楼

		if(fw.Length==0){
MessageBox.Show(this.Page,"房屋不能为空");
return ;
}

if(lc.Length==0){
后面还有 45 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。