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

📄 details.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 details : System.Web.UI.Page
{
    static string apart;
   /* 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)
    {
        apart = Session["a"].ToString();
        /*house = Session["h"].ToString();
        land = Session["l"].ToString();
        shop = Session["s"].ToString();

        la = Convert.ToInt32(land);
        ho = Convert.ToInt32(house);
        ap = Convert.ToInt32(apartment);
        sh = Convert.ToInt32(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.ToInt32(obj.Next(1000)) + 1;

        Session["prop"] = num;
        Session["area"] = DropDownList2.SelectedItem.ToString();
        Session["price"] = DropDownList1.SelectedItem.ToString();
        Session["locality"] = TextBox4.Text;
        Session["address"] = TextBox6.Text;
        if (apart == "Residential Land")
        {
            Response.Redirect("land.aspx");
        }
         else if (apart == "Residential House")
        {
            Response.Redirect("house.aspx");
        }
        else if (apart == "Residential Apartment")
        {
            Response.Redirect("appartment.aspx");
        }
        else if (apart == "Commercial Shop")
        {
            Response.Redirect("shop.aspx");
        }



    }


    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {

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

    }
}

⌨️ 快捷键说明

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