浏览器中的解析器错误 [英] parser error in browser

查看:97
本文介绍了浏览器中的解析器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在我的项目达卡教育委员会中添加页面并在浏览器中运行时,它会得到解析器错误。

第1行:<%@ Page Language =" C#" AutoEventWireup = QUOT;真"代码隐藏= QUOT; Forms.aspx.cs"继承= QUOT; Dhaka_Education_Board.Forms" %>


$ b $双方改变我的项目名称所以我只是创建一个新项目并将该项目中的页面复制到我的新项目中。

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.

推荐答案

是的,您需要更改每个类的代码隐藏文件及其命名空间。



解析器问题是因为你在文件后面改变你的代码



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

<%@ 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


这篇关于浏览器中的解析器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆