{"id":171,"date":"2010-07-07T10:16:19","date_gmt":"2010-07-07T15:16:19","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=171"},"modified":"2010-07-07T10:16:20","modified_gmt":"2010-07-07T15:16:20","slug":"solving-the-name-does-not-exist-in-the-current-context-in-asp-net","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2010\/07\/07\/solving-the-name-does-not-exist-in-the-current-context-in-asp-net\/","title":{"rendered":"Solving &#8220;The name &#8230; does not exist in the current context&#8221; in ASP.NET"},"content":{"rendered":"<p>A little-known fact is that in ASP.NET is that you cannot have two copies of the same ASP.NET web page in the same folder, or it will attempt to load elements (such as controls) from the (usually) wrong page, and end up confusing itself, resulting in the error &#8220;The name &#8230; does not exist in the current context&#8221;. This can be very confusing as you try to figure out why it is not working even though it looks like you are doing it correctly.<\/p>\n<p>To resolve this,<strong> make sure there are no copies of the page in the same folder<\/strong> (such as things like backup files, accidental copies, etc) in the same folder. Either move them to a different folder or rename their extensions: .aspx to .aspxold and .cs to .csold.<\/p>","protected":false},"excerpt":{"rendered":"<p>A little-known fact is that in ASP.NET is that you cannot have two copies of the same ASP.NET web page in the same folder, or it will attempt to load elements (such as controls) from the (usually) wrong page, and end up confusing itself, resulting in the error &#8220;The name &#8230; does not exist in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14,4],"tags":[681,680,685,686,289,684,687,682,606,683],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/171"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=171"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/171\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}