#region 创建查询列表
    /// <summary>
    /// Creates html table to hold passed in feature info, and stream back to client.
    /// </summary>
    /// <param name="ftr">feature object</param>
    private void CreateSearchList(IResultSetFeatureCollection ifs)
    {
        //create a table control and populat it with the column name/value(s) from the feature returned and
        // and the name of the layer where the feature belong
        System.Web.UI.WebControls.Table infoTable = new System.Web.UI.WebControls.Table();
        //set table attribute/styles
        infoTable.CellPadding = 4;
        infoTable.Font.Name = "Arial";
        infoTable.Font.Size = new FontUnit(8);
        infoTable.BorderWidth = 1;
        //infoTable.BorderStyle = BorderStyle.Outset;         System.Drawing.Color backColor = Color.Bisque;        //add the first row, the layer name/value where the selected feature belongs 
        TableRow r = new TableRow();
        TableCell c = new TableCell();        foreach (Feature ftr in ifs)
        {            r = new TableRow();
            r.BackColor = backColor;            r.Cells.Clear();
            c = new TableCell();
            var mask = document.createElement("div");            c.Text = "● " + ftr["Name"].ToString();
            c.Font.Bold = true;
            c.ForeColor = Color.RoyalBlue;            r.Cells.Add(c);            infoTable.Rows.Add(r);        }        //stream the html table back to client
        StringWriter sw = new StringWriter();
        HtmlTextWriter hw = new HtmlTextWriter(sw);
        infoTable.RenderControl(hw);
        String strHTML = sw.ToString();
        HttpContext.Current.Response.Output.Write(strHTML);
    }    #endregion