Problem with ~ sign running aspx project (ASP.NET 3.5)
-
(ASP.NET 3.5) I m getting problem with ~ sign used to locate the master file. The project is running on local but when hosted on web then an error "Home.Master" page not found. =============== <%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="StudentRegistration.aspx.cs" Inherits="IUMS.SIS.StudentRegistration" ================= Please suggest me some answer Thax
-
(ASP.NET 3.5) I m getting problem with ~ sign used to locate the master file. The project is running on local but when hosted on web then an error "Home.Master" page not found. =============== <%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="StudentRegistration.aspx.cs" Inherits="IUMS.SIS.StudentRegistration" ================= Please suggest me some answer Thax
gauravems wrote:
MasterPageFile="~/Home.Master"
Shouldn't it be MasterPageFile="Home.Master" ? Your current path does not make any sense to me. :doh:
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.