Set webcontrol properties before control is rendered?

Discussion in 'ASP .Net' started by Guest, Oct 1, 2004.

  1. Guest

    Guest Guest

    I have a web control that has a property of UserId.

    I need to set the userid before rendering the control, because based on who
    is logged in, it displays something different.

    If I set the properties in page load for the page the control is placed on,
    it seems that is post render because the control doesnt work. If I set the
    UserId in the GUI and compile it, the control works fine, but that obviously
    isn't acceptable.

    Where can I set the properties before the control is rendered, or how can i
    re-render the control?

    Thanks!
     
    Guest, Oct 1, 2004
    #1
    1. Advertisements

  2. Guest

    Scott Allen Guest

    Hi PJ:

    Page_Load certainly happens before the control renders, so something
    else is amiss. Could you post some code? We could diagnose.
     
    Scott Allen, Oct 2, 2004
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.