title: Cross-Page Posting with a Master Page
body: <p>I found a workaround for my specific need, but I thought I'd ask this question anyway.</p>
  
  <p>Say I have a typical data entry web project with a master page -- instead of using the Session variable and using Response.Redirect or Server.Transfer to redirect users who are part of the way through data entry to the next step, I'd rather use cross-page posting.</p>
  
  <p>I tried setting up one of my websites in this manner, with a button like:</p>
  
  <pre><code>&lt;asp:Button ID="next" text="next" runat="server" PostBackUrl="EnterInfo.aspx" /&gt;
  </code></pre>
  
  <p>When I went to test the changes, my <code>&lt;form&gt;</code> tag hadn't changed at all:</p>
  
  <pre><code>&lt;form id="aspnetForm" action="SelectUser.aspx" method="post" name="aspnetForm"&gt;
  </code></pre>
  
  <p>Did I miss any details here, or is cross-page posting simply not intended for use with a master page?</p>
  
  <p><strong>Edit:</strong>
  The form tag above is the tag as rendered on the client -- not the server-side tag. I've read MSDN articles (<a href="http://msdn.microsoft.com/en-us/library/ms178139.aspx" rel="nofollow">like this one</a>) that seem to me to explicitly state that cross page posting actually posts the form to another page.</p>
  
  <p>Perhaps I've misinterpreted this as changing the form's action, but regardless my source form does not post invoke anything anywhere on my target when I click the button I altered -- it merely posts back to the current page.</p>