ARTICLE

A MasterPage in different folders without Image Loose

Posted by Abhimanyu Kumar Vatsa Articles | ASP.NET using VB.NET July 12, 2010
This article will explain, how to use a MasterPage in different folder without any image problem.
Reader Level:

Introduction and Demonstration

In ASP.NET, if you have a MasterPage on root and want to use it in different folder's web forms then remember images will not be visible for the web forms exist inside the folder other than root. Because of only, <img> tag generated by development environment has no serverside compatibility.
 
To fix such problem we have to add runat="server" tag with every image used in MasterPage.
Download this project for more details.

HAVE A HAPPY CODING!

share this article :
post comment
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor