in my web application i copy and paste the code from other site to in my page also the source code starting form when i run the application it is giving the error like thi
In your ASPX file, make sure the @Page declaration has an Inherits attribute that matches the full class name of the class in your code behind file. This declaration is usually the first line of the ASPX file. Also make sure that the class in your code behind file inherits System.Web.UI.Page and that it is not a sealed class.