⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 propdetails.aspx.cs

📁 its a website on property dealing made in c# and .net framework.. the database is missing though.
💻 CS
字号:
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;

public partial class page8 : System.Web.UI.Page
{
    static string land;
static string apartment;
    static string house;
    static string shop;

    static int la;
    static int ho;
    static int ap;
    static int sh;

    static int i,j;

    protected void Page_Load(object sender, EventArgs e)
    {
        apartment = Session["a"].ToString();
        house = Session["h"].ToString();    
        land = Session["l"].ToString();
        shop = Session["s"].ToString();

        la=Convert.ToInt64(land);
        ho=Convert.ToInt64(house);
        ap=Convert.ToInt64(apartment);
        sh=Convert.ToInt64(shop);
        
    }

    protected void TextBox4_TextChanged(object sender, EventArgs e)
    {

    }
    protected void TextBox2_TextChanged(object sender, EventArgs e)
    {

    }
    protected void TextBox3_TextChanged(object sender, EventArgs e)
    {
    }
    protected void TextBox6_TextChanged(object sender, EventArgs e)
    {

    }
    protected void TextBox1_TextChanged(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {
         int num;
        Random obj;
        obj=new Random();
        num=Convert.ToInt64(obj.Next(1000)) + 1;
          
         Session["prop"] = num;
         Session["area"] = TextBox2.Text;
         Session["price"] = TextBox3.Text;
         Session["locality"] = TextBox4.Text;
         Session["address"] = TextBox6.Text;

        if(ap!=0)
        Response.Redirect("apartment.aspx");

        else if(la!=0)
        Response.Redirect("land.aspx");

        else if(sh!=0)
        Response.Redirect("shop.aspx");

        else 
        Response.Redirect("house.aspx");

    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -