Click here to Skip to main content
15,887,453 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more: , +
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 .
Posted
Updated 18-Jul-16 23:35pm

1 solution

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