Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 20, 2010 01:12 PM by modig
Apr 16, 2010 01:41 PM|LINK
I try to create a new webb site using VS 2010 and .Net Framework 4.0, I wanted it to be a copy of an exsisting .Net Framework 3.5 based site, so I copied the aspx page code and the codebehind code from the old version when I created the new one, but now
I get these errors...
is not declared. It may be inaccessible due to its protection level.
It seem I get this error on every control I have on the page, why is that and how do I fix it?
Apr 16, 2010 04:51 PM|LINK
Please post your code.
Apr 16, 2010 08:13 PM|LINK
Ok, I found the problem. The error occured beacuse I created a new web application, but the aspx pages I copied into that project came from a website project.
Sep 21, 2010 09:30 AM|LINK
Hi, could you please explain why this caused the error andthe steps you took to resolve it?
Oct 20, 2010 01:12 PM|LINK
The pages differ a bit, for example a webb application aspx page have this structure...
And In codebehind..
Public Class MyPage
But a website aspx page looks like this..
CodeFile="MyPage.aspx.vb" Inherits="MyPage" %>
Partial Class myPage