Image is not displaying in master page

Issue : Image is not displaying in master page

Solution :

If you use html control in master page as like below line

<img src=”~/App_Themes/Images/company_logo.png” width=”203″ height=”36″></div>

then we want to include runat attribute inside the image tag.

<img src=”~/App_Themes/Images/company_logo.png” runat=”server”  width=”203″ height=”36″></div>

else change the html control to asp control, then it will work in the master page

Note :

  • If you use the ~/ syntax then the control has to be a server control;so we want to include runat in the tag.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.