HOWTO determine in content page page_load if masterpage fired post

Discussion in 'ASP .Net' started by =?Utf-8?B?Yl9hc3AubmV0?=, Apr 18, 2007.

  1. 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
     
    =?Utf-8?B?Yl9hc3AubmV0?=, Apr 18, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QWxleCBNYWdoZW4=?=

    MasterPage -> Page -> MasterPage Code Access

    =?Utf-8?B?QWxleCBNYWdoZW4=?=, Apr 10, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    7,900
    Steven Cheng[MSFT]
    Apr 14, 2006
  2. Replies:
    2
    Views:
    465
    Mark Rae
    Jun 19, 2006
  3. rockdale
    Replies:
    1
    Views:
    661
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Nov 16, 2006
  4. =?Utf-8?B?YmVycnkubW9yZ2Fu?=

    HOWTO determine in content page page_load if masterpage fired post

    =?Utf-8?B?YmVycnkubW9yZ2Fu?=, Apr 17, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    463
    =?Utf-8?B?YmVycnkubW9yZ2Fu?=
    Apr 17, 2007
  5. WebBuilder451
    Replies:
    1
    Views:
    759
    WebBuilder451
    Aug 8, 2008
Loading...

Share This Page