HOWTO determine in content page page_load if masterpage fired post

G

Guest

I want to bypass my content page's page_load event when the postback is
caused by a control from my masterpage, doing something like this from my
content page's page_load handler:

Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles page.Load

If NOT sender.ThisEventWasFiredFromTheMasterPage then
'process normally
end if
(else exit sub, essentially)
end sub

What is the syntax to determine what fired the postback?
TIA,
Berry
 

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,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top