Click here to Skip to main content
15,902,893 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when i add a page in my project Dhaka Education Board and run in browser its getting parser error.
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Forms.aspx.cs" Inherits="Dhaka_Education_Board.Forms" %>

i nedded to change my project name so i just create a new project and copied pages from that project to my new project.
Posted
Updated 20-Jan-16 11:02am
v2
Comments
Sinisa Hajnal 21-Jan-16 2:54am    
And then you have to change form names, class names and project namespace. Next time, go to properties and change the project name without this hassle.
Thomas Nielsen - getCore 21-Jan-16 4:07am    
Was there a question?

1 solution

Yes you need to change the codebehind file and its namespace of each classes.

The parser issues is because you dint change your code behind file

ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Forms.aspx.cs" Inherits="Dhaka_Education_Board.Forms" %>



if you have changed this and if u get the error still, then go to your class file and check its namespace or class name
 
Share this answer
 

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