Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


I have run my project showing this error 1 or 3 aspx forms...

Please help me.

Error 29 Error parsing attribute 'masterpagefile': Type 'System.Web.UI.Page' does not have a public property named 'masterpagefile'. D:\Mis_Reports\Website\New_Mis\Forms\Reports.aspx 1
Posted
Updated 28-Nov-13 21:09pm
v2
Comments
JoCodes 29-Nov-13 4:11am    
Can you add the page markup code to the question ?
Er Daljeet Singh 29-Nov-13 4:14am    
post the code where you are getting this error
Member 10222278 29-Nov-13 5:11am    
I have getting error this first line

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="Reports.aspx.cs" Inherits="Forms_Reports" %>

I think your Reports.aspx is not inheriting from the masterpage.

Means, When you create the reports.aspx, you have not selected a master page. you can change repots.aspx and include the master page to solve this.

Let me know if you need more help.
 
Share this answer
 
Comments
Member 10222278 29-Nov-13 5:20am    
This is aspx...

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="Reports.aspx.cs" Inherits="Forms_Reports" %>
Does not have a masterpagefile attribute means you might have used masterpagefile instead "MasterPageFile". I am not sure enough what you have used. If not so let me know..
 
Share this answer
 
Comments
Member 10222278 29-Nov-13 5:21am    
This is my code...

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="Reports.aspx.cs" Inherits="Forms_Reports" %>
Khan Sameer 17-Nov-15 1:39am    
What was the solution for this problem !!!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900