PreviousPage and it's events

  • Thread starter smartscottiedog
  • Start date
S

smartscottiedog

Hi,
I have two pages. One source and one destination to crosspost. From
destination page, I check to see if the request is coming from
previous page.

if (PreviousPage != null && PreviousPage.IsCrossPagePostBack)
.....

At this moment, the source Page_Load and it's master page's events
fire off. Well, I have some logics there that I would rather not run
again. For example, Random, it will regenerate the value. Is it
normal to reprocess the page with events? It is hitting the database
unnecessary because of these events. Never had to cross post until
now and this is slowing me down. TIA.
 

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,780
Messages
2,569,611
Members
45,277
Latest member
VytoKetoReview

Latest Threads

Top