Page_Load on Source Page Firing on Cross-Page Postback

J

Jason Wilson

I have two pages that that cross post to each other:

Page1 has a form
Page2 verifies the form entries before posting to a DB

If the user sees problems with their entries they can click an Edit
button that will send them back to Page1.

When I click the edit button on page2 I get a runtime error as it tries
to evaluate the page2 Page_Load.

This happens the other way as well. The Page_Load for page1 runs when
posting to page2 and page.IsCrossPagePostBack = True in the page1
Page_Load Event Handler.

Any insight?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top