title: How to use POST method with Asp.Net Master page?
body: <p>I have a master page and on the other asp.net form I need to call a method to .ashx file something as shown below:</p>
  
  <p>As I am having problem with the buttons as whatever the button I click its Posting back the content which I don't want to.</p>
  
  <pre><code> &lt;form id="Form1" action="Upload.ashx" method="POST" enctype="multipart/form-data"
      runat="server"&gt;
      &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
      &lt;/asp:ScriptManager&gt;
      &lt;div id="fileupload" style="border: thin solid #666666; width: 600px; height: 520px;
          z-index: 1; left: 18px; top: 22px; position: absolute; overflow: auto;"&gt;
          &lt;div class="fileupload-buttonbar"&gt;
              &lt;label class="fileinput-button"&gt;
                  &lt;span&gt;Add files...&lt;/span&gt;
                  &lt;input type="file" name="files[]" multiple="multiple" /&gt;
              &lt;/label&gt;
              &lt;button type="submit" class="start"&gt;
                  Start upload&lt;/button&gt;
              &lt;button type="reset" class="cancel"&gt;
                  Cancel upload&lt;/button&gt;
              &lt;button type="button" class="delete"&gt;
                  Delete all files&lt;/button&gt;
              &lt;div class="fileupload-progressbar"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="fileupload-content" style="border-style: none"&gt;
              &lt;table class="files"&gt;
              &lt;/table&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>which is not possible as I have a content page.</p>
  
  <p>So how do I do that within the content of the asp.net form which is based on the masterpage.</p>