Net designer file not updating
Solution 4 : Simply cut all the code of the aspx or ascx file, save it and again paste the original code, save it again. If nothing of the above solution works for you, please let me know.Please Like and Share the Blog, if you find it interesting and helpful.Solution 4 : Simply cut all the code of the aspx or ascx file, save it and again paste the original code, save it again. Raise your hand if this has happened to you (i know it has to me a LOT of times recently): You’re working on a Web Application Project (WAP) page in markup and you paste in some code from another page.When I run into this problem I usually start by deleting the .page and hoping that then opening the page in the visual designer and saving will fix any nascent problems.Sometimes that works – most times it won’t, but it’s worth a try. Next, if the above fails, right click on the ASPX page in the Solution Explorer and select Convert To Web Application.BTW, if you get the General Exception Failure dialog you may not be completely screwed either.Close the page in the markup editor or designer, recompile (errors and all) and then try again to Convert to Web Application.
NET is trying to be helpful and add IDs for every server control it pastes into the new page even if that control originally did not contain an id. NET generates new ids for you and then fails to check the document if those ids already exist on the page.As soon as you do this a new .file will be created for you with all the controls in it.Solution 2 : Delete your old .file if you want to update and create a new empty file with the same name, after saving your aspx or ascx file again, the designer class will be regenerated.The short of it is that this is enough for the WAP codebehind engine to fail.The problem here is that this is difficult to figure out. You see the error – the compiler is missing the controls – but you get no hint as to why the codebehind page is not behing generated.