Change image in Site.Master on page load


What code would I use to change the ImageURL property
of an image on my Site.Master file as my Default page loads?

Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
Johny BravoConnect With a Mentor Commented:
This should do
Dim img1 As Image = DirectCast(Master.FindControl("imageButtonId"), Image)
img1.ImageUrl = "image url"
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.