I have a MasterPage.master in root folder and I have to use it in info.aspx file which is in another folder named secure.
Problem: In info.aspx page MasterPage.master's images are not visible but texts are visible. I am using this
This is Master Page codings.
<%@ Master Language="VB" %>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml" >
Untitled Page
|
This is info.aspx Page codings which is in another folder
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="info.aspx.vb" Inherits="secure_info" title="Untitled Page" %>
This is my text of content.
|
In above page images are not visible which is in master page.
This is information.aspx Page codings
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="information.aspx.vb" Inherits="information" title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> this is my text asp:Content>
|
In above page, images are good, working cooool
Folder location on my PC
wwwroot/MasterPage.master
: (I have used images there in master page)
wwwroot/introduction.aspx
: (In this page master page working very good)
wwwroot/secure/info.aspx
: (In this page master page working but only images are not visible)
Please tell me, where and how I change in info.aspx page or else to fix image error.
CrishPosted May 27, 2010, 12:55 PM
Abhimanyu K VatsaPosted May 28, 2010, 12:41 AM
<img src="images/Water_lilies.jpg" style="width: 949px; height: 96px" runat="server"/>
insted of
<img src="images/Water_lilies.jpg" style="width: 949px; height: 96px" />
Note: I only add runat="server" attribute in img tag and it is fixed out.
PJ MartinsPosted May 27, 2010, 10:55 AM
Abhimanyu K VatsaPosted May 27, 2010, 10:54 AM