예제 #1
0
 public void ProcessRequest(HttpContext context)
 {
     //Debugger.Launch();
     context.Response.ContentType = "text/plain";
     String strBookSent = "";
     using (var reader = new StreamReader(context.Request.InputStream))
     {
         var stream = context.Request.InputStream;
         byte[] buffer = new byte[stream.Length];
         stream.Read(buffer, 0, buffer.Length);
         String mStrID = Encoding.UTF8.GetString(buffer);
         oDFBook = new DFCls_BookForm(mStrID);
         strBookSent = oDFBook.GetBook();
     }
     context.Response.Write(strBookSent);
 }
 public void ProcessRequest(HttpContext context)
 {
     //Debugger.Launch();
     context.Response.ContentType = "text/plain";
     using (var reader = new StreamReader(context.Request.InputStream))
     {
         var stream = context.Request.InputStream;
         byte[] mXML = new byte[stream.Length];
         stream.Read(mXML, 0, mXML.Length);
         oDFBook = new DFCls_BookForm(mXML);
         if (oDFBook.SaveBook()){
             context.Response.Write(oDFBook.GetBook());
         } else {
             context.Response.Write("failure");
         }
     }
 }
 public void ProcessRequest(HttpContext context)
 {
     //Debugger.Launch();
     context.Response.ContentType = "text/plain";
     var mStrSuccess = "failure";
     using (var reader = new StreamReader(context.Request.InputStream))
     {
         var stream = context.Request.InputStream;
         byte[] buffer = new byte[stream.Length];
         stream.Read(buffer, 0, buffer.Length);
         String mStrID = Encoding.UTF8.GetString(buffer);
         oDFBook = new DFCls_BookForm(mStrID);
         if (oDFBook.DeleteBook()){
             mStrSuccess = "success";
         }
     }
     context.Response.Write(mStrSuccess);
 }