ve-2c.tmp

来自「its a website on property dealing made i」· TMP 代码 · 共 87 行

TMP
87
字号
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 details : 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 + =
减小字号Ctrl + -
显示快捷键?