Site icon Dotnet Helpers

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 :

Exit mobile version