无法在我的网页部分编辑我的ascx文件? [英] Unable to edit my ascx file in my web part ?

查看:89
本文介绍了无法在我的网页部分编辑我的ascx文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法在我的网页部分编辑我的ascx文件。编辑ascx文件并调试Web部件后,ascx.g.cs文件会自动删除吗?并给出错误



我尝试了什么:



i试图编辑我的web部分ascx文件,在更改了一些字段和输入标签后,我保存了我的Web部件并构建了解决方案。在我的网页部分ascx.g.cs文件被删除并给我错误。

unable to edit my ascx file in my web part. after editing ascx file and debugging the web part, ascx.g.cs file gets deleted automatically ? and gives Error

What I have tried:

i tried to edit my web part ascx file, after changing some fields and input tags i saved my web part and build the solution . in my web parts ascx.g.cs file got deleted and gives me error .

推荐答案

您好,是否对自动生成的设计器ascx.g进行了任何更改。 cs文件?

如果是,则在对ascx文件代码进行任何更改时将删除该文件。要解决此问题,请创建一个新的webpart并复制粘贴相同的代码。



问候
Hi, did you make any change on the auto generated designer ascx.g.cs file?
if yes then the file will be deleted while make any changes on the ascx file code. To resolve this issue, crate a new webpart and copy paste the same code.

Regards


这篇关于无法在我的网页部分编辑我的ascx文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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