Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7792689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:15:50+00:00 2026-06-01T22:15:50+00:00

I found this article on MSDN talking about Cross-page posting . I never worked

  • 0

I found this article on MSDN talking about Cross-page posting.

I never worked with Page.PreviousPage. But I think its interesting.

Do you use it? Is it a good pratice, or a bad idea?

What do you think about?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:15:51+00:00Added an answer on June 1, 2026 at 10:15 pm

    The cross page posting is a helper to post some data to a different page and still have the asp.net code behind functionality.

    Why is this exist ? because asp.net have a limitation of one and only form per page. But actually to an html page you can have many forms and many different post to different pages.

    So to give a tool to that case, is let you set a second page to post the data, and you setup this on the Button (and not by placing second form), and from there is solve this issue, to post the data to a different page.

    For example… with out asp.net and with simple html on a page you can do that.

    <body>
    <form method="post" action="samepage.html">
       Username: <input type="text" name="user" />
       <input type="submit" value="Submit" />
    </form>
    
    <form method="post" action="page_b.html">
       email for news letter: <input type="text" name="email" />
       <input type="submit" value="Submit" />
    </form>
    </body>
    

    To solve a situation like this, and because asp.net not allow two forms at the same page, gives this option.

    <body>
    <form id="form1" runat="server">
    Username: <asp:TextBox runat="server" ID="Name" />
    <asp:Button runat="server"/>
    
    email for news letter: <asp:TextBox runat="server" ID="email" />
    <asp:Button runat="server" PostBackUrl="page_b.aspx" />
    
    </form>
    </body>
    

    In the second case, you have one form, but you set the PostBackUrl to a different page, and from there asp.net still handle the data on code behind direct on a second page (with out redirect).

    I hope this example gives you and an idea where to really use the previous page. Also what is more usually is the Redirect, how ever there are case that you need to have the result to a different page. So its per case if you use it or not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently found an article online that told me about this: RewriteRule ^mock-up/([^/]+)/([^/]+) /mock-up/index.php?page=$1&section=$2
Googling I've found this article: http://java.dzone.com/tips/generating-client-java-code It talk about how to generate a JAVA
I'm working on processing a large csv file and I found this article about
I found this article regarding Linq-to-SQL and SQL Server connection pooling: MSDN Blog From
I've found this MSDN article that explains how to monitor processes and services with
While implementing Multithreaded Cache, i found this article on MSDN. http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlockslim.aspx This is for
I was digging around in MSDN and found this article which had one interesting
I found this in an article on Multithreaded Apartments, but can’t find a definition
I found this article but it does not contain support for run as admin..
I found this article that looked like exactly what I wanted, but I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.