problem defining namespace for .aspx page
I tried to add namespace for .aspx page in the following manner:
namespace NewWebSite.Forms
{
public partial class Forms_WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
But i received the following error on compilation:
Error 1 'ASP.forms_webform1_aspx.GetTypeHashCode()': no suitable method found to overridec:\WINDOWS\Microsoft.NET\Frameworkv2.0.507 27\Temporary ASP.NET
Files\newwebsite\487c509f\be4ec92b\App_Web_vy5woww w.0.cs
Error 2 'ASP.forms_webform1_aspx.ProcessRequest(System.Web .HttpContext)': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\newwebsite\487c509f\be4ec92b\App_Web_vy5woww w.0.cs
Error 3 'ASP.forms_webform1_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable' c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\newwebsite\487c509f\be4ec92b\App_Web_vy5woww w.0.cs
Error 4 Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). D:\C# .Net Sample\ASP.NET 2.0\NewWebSite\Forms\WebForm1.aspx.cs 14 33 D:\...\NewWebSite
The namespace "NewWebSite.Forms" is exactly correct as the name of the project and the foler name "Forms" in which the .aspx page residesi It would be appreciable if i could get solution to the above problem thank you in advance.
imspratik
__________________
imspratik
|