Master Page link not work properly

Posted by Shoyebaziz123 under ASP.NET on 1/20/2012 | Points: 10 | Views : 1448 | Status : [Member] | Replies : 2
Hi All,
I have a master page in my application, i have created multiple folder for different task ..one of the folder is "Testing" inside this folder there is a folder name "waterTesting" inside this folder i am placing a form naming frmwater.aspx....
now my problem is that when i run the application my master pages icon and logo doesn't appear , also there is some link which is for opening certain pages..when clicking this show file directory error...

If i use my asp form inside Testing folder it works properly .. what is the reason..or how can i set master page path inside multiple folder


Thanks




Responses

Posted by: Prabhakar on: 1/21/2012 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi, Shoyebaziz123

check ur code . . your url for logo & icon . . use like this "../img/one.gif" not "~/img" or "/img"
check url's . . try it . .



Best Regard's
Prabhakar

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 1/25/2012 [Member] Starter | Points: 25

Up
0
Down
In this case You should concentrate on Contentplaceholder

Eg
In frmwater.aspx
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">

<br />
<asp:GridView ID="gv" runat="server" AutoGenerateColumns="false"
Visible="true" GridLines="None"></gridview>
</content>

In above page contentplaceholderid="Contentplaceholder2"

In masterpage it should be like

<div>
<asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
</asp:ContentPlaceHolder>
</div>

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response