Example #1
0
    // ajax请求获得书目库名
    // searchbiblio.aspx?action=getdblist
    void DoGetDbNameList()
    {
        string strError = "";
        int    nRet     = 0;

        string        strResult = "";
        List <string> list      = this.BiblioSearchControl1.GetDbNameList();

        foreach (string s in list)
        {
            string strText = s; //  s.Replace("<", "[").Replace(">", "]");
            strText    = HttpUtility.HtmlEncode(strText);
            strResult += "<option value='" + strText + "'>" + strText + "</option>";
        }

        GetDbNameList result_info = new GetDbNameList();

        result_info.ResultText = strResult;

END_GETINFO:
        this.Response.Write(GetResultString(result_info));
        this.Response.End();
    }
Example #2
0
    // ajax请求获得书目库名
    // searchbiblio.aspx?action=getdblist
    void DoGetDbNameList()
    {
        string strError = "";
        int nRet = 0;

        string strResult = "";
        List<string> list = this.BiblioSearchControl1.GetDbNameList();
        foreach (string s in list)
        {
            string strText = s; //  s.Replace("<", "[").Replace(">", "]");
            strText = HttpUtility.HtmlEncode(strText);
            strResult += "<option value='" + strText + "'>" + strText + "</option>";
        }

        GetDbNameList result_info = new GetDbNameList();
        result_info.ResultText = strResult;

    END_GETINFO:
        this.Response.Write(GetResultString(result_info));
        this.Response.End();
    }