468,121 Members | 1,439 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,121 developers. It's quick & easy.

HOWTO determine in content page page_load if masterpage fired post

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
Apr 17 '07 #1
0 1362

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by cheung | last post: by
4 posts views Thread by Alan Silver | last post: by
reply views Thread by =?Utf-8?B?Yl9hc3AubmV0?= | last post: by
3 posts views Thread by Roger Frei | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.