Exemple #1
0
    protected void Button28_Click(object sender, EventArgs e)
    {
        Label3.Text = "";
        List <Area> child = Areas.GetAllChildAreas(504);

        foreach (Area area in child)
        {
            Label3.Text += area.RegionName + ";";
        }
    }
Exemple #2
0
        string GetRegion(HttpContext context, ref bool result)
        {
            string msg  = "";
            string type = context.Request["type"];

            switch (type)
            {
            case "1":
                msg    = Newtonsoft.Json.JavaScriptConvert.SerializeObject(Areas.GetDistinctAreas());
                result = true;
                break;

            case "2":
                msg    = Newtonsoft.Json.JavaScriptConvert.SerializeObject(Areas.GetAllChildAreas(int.Parse(context.Request["areaId"])));
                result = true;
                break;
            }
            return(msg);
        }