How to access a control in master page?

M

Miguel Dias Moura

Hello,

The pages on my web site use a master page.
In my master page I have an Asp:Image.
The Asp:Image has the same properties and position in all pages which is
defined in my master page.

However in each page I need to change the ImageUrl.
How can I do this?

Thanks,
Miguel
 
J

Joey

One example:

this.Master.FindControl("lblUserName").Visible = false;

I suppose you could cast into type image and then get at its properties
that way. Haven't tried it, though.

JP
 

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

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top