Tim Stall wrote:
UC are self-contained, therefore you could set the properties on the UC itself. (however note that UC do inherit the page CSS).
From
where does one access and control the User Control?
Depends for what. If you want the UC to do something upon clicking a button in the UC, that is done in the UC itself - in some sense UC are just like self-contained ASPX pages. Drag the button onto the UC, double click it, and put the code there. Drag the UC onto an ASPX page. Run the page. When the user clicks the UC button, that code will be run.
HTH,
Tim Stall
=============== =============== =============== =============
I have a web page called SomePage.aspx which uses a UC for navigation.
The name of the UC is navUC.ascx.
When SomePage.aspx loads, I need to have one of the buttons in the UC
look different than the others, i.e. the button that represents the page
I am on.
Say my UC buttons are imageButtons. I need to set the source property
of imageButtonX (let's call it) to be different than its default source
image in the UC.
navUC.ascx has no way of knowing what page is using it, so it cannot
make one imageButton have a different image.
So from SomePage.aspx I need to tell navUC.ascx to have imageButtonX use
a different source image.
How is this done?