Modifying a property of a control contained in a user control

Discussion in 'ASP .Net Building Controls' started by Nathan Sokalski, Sep 16, 2005.

  1. I have a user control that is made up of several HyperLink controls. In the
    Page_Load event of pages that use the control I want to change a property of
    one of these HyperLinks. How can I access these controls from the Page's
    Load event? Thanks.
    --
    Nathan Sokalski

    http://www.nathansokalski.com/
     
    Nathan Sokalski, Sep 16, 2005
    #1
    1. Advertising

  2. Nathan Sokalski

    Sachin Saki Guest

    Hi Nathan,

    Make the properties in usercontrol and create the object of it and set the
    property from page load from aspx page. i think this best way to do what u
    want.

    Regards,
    Sachin Saki
    ..NET Developer, Capgemini - INDIA


    "Nathan Sokalski" wrote:

    > I have a user control that is made up of several HyperLink controls. In the
    > Page_Load event of pages that use the control I want to change a property of
    > one of these HyperLinks. How can I access these controls from the Page's
    > Load event? Thanks.
    > --
    > Nathan Sokalski
    >
    > http://www.nathansokalski.com/
    >
    >
    >
     
    Sachin Saki, Sep 16, 2005
    #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. Nathan Sokalski
    Replies:
    1
    Views:
    406
    =?Utf-8?B?U2FjaGluIFNha2k=?=
    Sep 16, 2005
  2. sunfire
    Replies:
    0
    Views:
    347
    sunfire
    Jun 14, 2007
  3. mhageman27
    Replies:
    0
    Views:
    311
    mhageman27
    Apr 13, 2010
  4. Warped
    Replies:
    2
    Views:
    530
    Warped
    Jul 15, 2005
  5. Nathan Sokalski

    Modifying a property of a control contained in a user control

    Nathan Sokalski, Sep 16, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    135
    Sachin Saki
    Sep 16, 2005
Loading...

Share This Page