I have a web application built in ASP.NET 2.0 and VB.NET as core language.
I have a template.master file I used to build my page.
However I would like the template images to be chaged bynamically based on the loaded page.
That means, whenever the the contact.aspx page is loaded I would like the contact_header.jpg to be displayed
same things applies with the home_header.jpg whenever the homepage is loaded.
I tried to work the trick around the code behing of each page, but with no success.
This is the error I get whenever I compile:
Error 2 'myNamespace.folderEnglish.Protected Dim WithEvents imgcontact_header As System.Web.UI.HtmlControls.HtmlImage' is not accessible in this context because it is 'Protected'. D:\MyWebsite\en\Contact.aspx.vb 34 13