It looks like you just need to change the PostBackUrl button of the button that submits the form.
A simple example of PostToPage1.aspx , which is sent to PostToPage2.aspx (instead of postback):
<form id="form1" runat="server"> <div> <asp:TextBox ID="text1" runat="server" /><br /> <asp:TextBox ID="text2" runat="server" /> <asp:Button ID="btn1" runat="server" PostBackUrl="~/PostToPage2.aspx" /> </div> </form>
You can then check Request in PostToPage2.aspx to check if it has POST, etc., and then access the Request.Form collection in Request in Page_Load .
Too simplified fetch for PostToPage2.aspx (add the correct check):
if (!Page.IsPostBack && Request.RequestType == "POST") { if (Request.Form != null && Request.Form.Keys.Count > 0) { .....
Hth ...
source share