Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.ContentType = "text/xml;charset=utf-8";
        Response.Charset     = "UTF-8";
        string    strDicName    = Request["txtDicName"];
        ReturnDoc obj_ReturnDoc = new ReturnDoc();

        try
        {
            General.CreateDicFile(strDicName);
            obj_ReturnDoc.setErrorResult(Common.SRT_SUCCESS);
        }
        catch (Exception ep)
        {
            obj_ReturnDoc.addErrorResult(ep.Message);
            obj_ReturnDoc.setFuncErrorInfo(Common.SRT_FUNCERROR);
        }

        Response.Write(obj_ReturnDoc.getXml());
    }