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); oDFLocation = new DFCls_LocationForm(mStrID); if (oDFLocation.DeleteLocation()){ mStrSuccess = "success"; } } context.Response.Write(mStrSuccess); }