problem with user control

Discussion in 'ASP .Net' started by Bobofrut, Mar 6, 2004.

  1. Bobofrut

    Bobofrut Guest

    hi All

    is there any possibility to run main page Page_Load event from user control
    ??
    or get access from this control to any public page properties

    thnks in advance..

    Chris
     
    Bobofrut, Mar 6, 2004
    #1
    1. Advertising

  2. Bobofrut

    Teemu Keiski Guest

    Hi,

    you certainly can access Page's properties from user control. Just cast Page
    property (user control has Page property) to its codebehind type. Then you
    can access the properties of it. Note that this of course can make user
    control dependant on Page where it resides or at least to know the page's
    type.

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist

    "Bobofrut" <> wrote in message
    news:c2ctm9$e59$...
    hi All

    is there any possibility to run main page Page_Load event from user control
    ??
    or get access from this control to any public page properties

    thnks in advance..

    Chris
     
    Teemu Keiski, Mar 6, 2004
    #2
    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. Tom Rowton
    Replies:
    2
    Views:
    695
    Tom Rowton
    Aug 1, 2003
  2. vatech1993
    Replies:
    4
    Views:
    5,718
    =?Utf-8?B?U8Opcmdpbw==?=
    Dec 11, 2004
  3. Replies:
    0
    Views:
    451
  4. Mad Scientist Jr
    Replies:
    0
    Views:
    673
    Mad Scientist Jr
    Mar 22, 2006
  5. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    578
    Jonathan Wood
    Feb 2, 2010
Loading...

Share This Page