コード例 #1
0
    public void Countries()
    {
        DataTable Dt = DALC.GetCountriesList();

        DlistCountry1.DataSource = DlistCountry2.DataSource = Dt;
        DlistCountry1.DataBind();
        DlistCountry2.DataBind();
        DlistCountry1.Items.Insert(0, new ListItem("--", "0"));
        DlistCountry2.Items.Insert(0, new ListItem("--", "0"));

        Regions(DlistCity1, DlistCountry1.SelectedValue);
        Regions(DlistCity2, DlistCountry2.SelectedValue);
    }
コード例 #2
0
    public void Countries()
    {
        DataTable Dt = DALC.GetCountriesList();

        DlistCountry.DataSource = Dt;
        DlistCountry.DataBind();
        DlistCountry.Items.Insert(0, new ListItem("--", "0"));

        DlistCountry2.DataSource = Dt;
        DlistCountry2.DataBind();

        DlistCountry3.DataSource = Dt;
        DlistCountry3.DataBind();
        DlistCountry3.Items.Insert(0, new ListItem("--", "0"));
        Regions(DlistCity3, DlistCountry3.SelectedValue);

        //Yaşadığı ünvan daimi Azərbaycan olmalıdır.
        DlistCountry2.SelectedValue = "1";
        Regions(DlistCity2, DlistCountry2.SelectedValue);
    }