title: don't Return file to Editor in httpHandler on Asp.net web forms
body: <p>I use httpHander to Upload file and return it to Editor .</p>
  
  <p>It's Save file but doesn't return image to editor . my code to do this is :</p>
  
  <pre><code> public void ProcessRequest(HttpContext context)
      {
          HttpPostedFile file = context.Request.Files["file"];
          string path=HttpContext.Current.Server.MapPath("~")+"/Images/"+file.FileName;
          file.SaveAs(path);
          context.Response.ContentType = "image/jpeg";
          context.Response.Write("&lt;img src='"+path+"'/&gt;");
      }
  </code></pre>
  
  <p>and my config of redactor is:</p>
  
  <pre><code>                &lt;script type="text/javascript"&gt;
                      $(document).ready(function () {
                          $(".editor").redactor({
                              imageUpload: "Upload.ashx/ProcessRequest()",
                              fileUpload: "Upload.ashx/ProcessRequest()",
                              linkFileUpload: "Upload.ashx/ProcessRequest()"
                              ,autoformat: false
                              , convertDivs: false
                          });
  
                      });
  &lt;/script&gt;
  </code></pre>
  
  <p>and :</p>
  
  <pre><code>    &lt;asp:TextBox runat="server" ID="txtContnt" TextMode="MultiLine" CssClass="editor"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>My editor is :redactor and I use asp.net web forms .
  httphandler work very well but don't return file to editor </p>