Hi Sir,
I have Following code in Master Page:
with 5 pages in it.
(with 4th and 5th page is inside Admin folder)
No <authorization> are given. all are open to every user.
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div style="width:100%; height:50px; background-color:Gray">
<span style="color:Green;"><a href="FirstPage.aspx">FirstPage</a></span>
<span style="color:Green; margin-left:30px"><a href="SecondPage.aspx">Secnod Page</a></span>
<span style="color:Green; margin-left:30px"><a href="ThirdPage.aspx">Third Page</a></span>
<span style="color:Green; margin-left:30px"><a href="Admin/FourthPage.aspx">Fourth Page</a></span>
<span style="color:Green; margin-left:30px"><a href="Admin/FifthPage.aspx">Fourth Page</a></span>
</div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</form>
</body>
</html>
When I run the application, 1st page, second page, 3rd page
I get Url on page as:
localhost:2069/TestPage/FirstPage.aspx
localhost:2069/TestPage/SecondPage.aspx
localhost:2069/TestPage/ThirdPage.aspx
theycan be accessible.
also when i click on 4th Page,
I get url as:
localhost:2069/TestPage/Admin/FourthPage.aspx
and 4th page will get displayed.
But..When i go back to any other page, it will throw an error
"Resource cannot be found"
with URL as:
localhost:2069/TestPage/Admin/ThirdPage.aspx
How to avoid this Error? Kindly help