Hi i m Akash, I m working on a project which is based on Beer House project (project ) ... I just copied some code in my project to managearticles page but it is throwing errors... pls help me... I m sending code and errors...
<p>
Error 1 'ASP.admin_managearticles_aspx.GetTypeHashCode()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ucgsga\bd154e54\894f199b\App_Web_brt4aqrq.8.cs 462
Error 2 'ASP.admin_managearticles_aspx.ProcessRequest(System.Web.HttpContext)': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ucgsga\bd154e54\894f199b\App_Web_brt4aqrq.8.cs 466
Error 3 'ASP.admin_managearticles_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable' c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ucgsga\bd154e54\894f199b\App_Web_brt4aqrq.8.cs 158
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). C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx.cs 12 33 C:\...\ucgsga\
</p>
Code :
#pragma
checksum "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "321EE074DAF0255AD154E356FE085EBE"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1378
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MB.TheBeerHouse.UI.Admin {
public partial class ManageArticles : System.Web.SessionState.IRequiresSessionState {
#line 7 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
protected global::System.Web.UI.WebControls.HyperLink lnkManageCategories;
#line
default#line hidden
#line 9 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
protected global::System.Web.UI.WebControls.HyperLink lnkManageComments;
#line
default#line hidden
#line 10 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
protected global::System.Web.UI.WebControls.HyperLink lnkAddNewArticle;
#line
default#line hidden
#line 14 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
protected global::ASP.controls_articlelisting_ascx ArticleListing1;
#line
default#line hidden
protected ProfileCommon Profile {
get {return ((ProfileCommon)(this.Context.Profile));
}
}
protected ASP.global_asax ApplicationInstance {
get {return ((ASP.global_asax)(this.Context.ApplicationInstance));
}
}
}
}
namespace ASP {
#line 286 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.Security;
#line
default#line hidden
#line 283 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web;
#line
default#line hidden
#line 285 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.SessionState;
#line
default#line hidden
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
using System.Web.UI.WebControls.WebParts;
#line
default#line hidden
#line 281 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Text;
#line
default#line hidden
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
using System.Web.UI.WebControls;
#line
default#line hidden
#line 287 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.Profile;
#line
default#line hidden
#line 278 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Collections;
#line
default#line hidden
#line 291 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.UI.HtmlControls;
#line
default#line hidden
#line 280 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Configuration;
#line
default#line hidden
#line 277 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System;
#line
default#line hidden
#line 2 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
using ASP;
#line
default#line hidden
#line 284 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.Caching;
#line
default#line hidden
#line 288 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Web.UI;
#line
default#line hidden
#line 279 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Collections.Specialized;
#line
default#line hidden
#line 282 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
using System.Text.RegularExpressions;
#line
default#line hidden
[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]public class admin_managearticles_aspx : global::MB.TheBeerHouse.UI.Admin.ManageArticles, System.Web.IHttpHandler {
private static bool @__initialized;
private static object @__stringResource;
private static object @__fileDependencies;
public admin_managearticles_aspx() {string[] dependencies;
#line 912304 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx.cs"
((
global::System.Web.UI.Page)(this)).AppRelativeVirtualPath = "~/Admin/ManageArticles.aspx";
#line
default#line hidden
if ((global::ASP.admin_managearticles_aspx.@__initialized == false)) {global::ASP.admin_managearticles_aspx.@__stringResource = this.ReadStringResource();
dependencies =
new string[10];dependencies[0] = "~/Admin/ManageArticles.aspx";
dependencies[1] =
"~/Admin/ManageArticles.aspx.cs";dependencies[2] = "~/Controls/RatingDisplay.ascx.cs";
dependencies[3] =
"~/Controls/RatingDisplay.ascx";dependencies[4] = "~/Template.master.cs";
dependencies[5] =
"~/Controls/ArticleListing.ascx";dependencies[6] = "~/Controls/ArticleListing.ascx.cs";
dependencies[7] =
"~/Controls/ThemeSelector.ascx";dependencies[8] = "~/Template.master";
dependencies[9] =
"~/Controls/ThemeSelector.ascx.cs";global::ASP.admin_managearticles_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);global::ASP.admin_managearticles_aspx.@__initialized = true;
}
this.Server.ScriptTimeout = 30000000;
}
private global::System.Web.UI.WebControls.HyperLink @__BuildControllnkManageCategories() {
global::System.Web.UI.WebControls.HyperLink @__ctrl;
#line 7 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl =
new global::System.Web.UI.WebControls.HyperLink();
#line
default#line hidden
this.lnkManageCategories = @__ctrl;@__ctrl.TemplateControl = this;
@__ctrl.ApplyStyleSheetSkin(
this);
#line 7 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.ID =
"lnkManageCategories";
#line
default#line hidden
#line 7 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.NavigateUrl =
"ManageCategories.aspx";
#line
default#line hidden
System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
#line 7 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(
new System.Web.UI.LiteralControl("Manage Categories"));
#line
default#line hiddenreturn @__ctrl;
}
private global::System.Web.UI.WebControls.HyperLink @__BuildControllnkManageComments() {
global::System.Web.UI.WebControls.HyperLink @__ctrl;
#line 9 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl =
new global::System.Web.UI.WebControls.HyperLink();
#line
default#line hidden
this.lnkManageComments = @__ctrl;@__ctrl.TemplateControl = this;
@__ctrl.ApplyStyleSheetSkin(
this);
#line 9 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.ID =
"lnkManageComments";
#line
default#line hidden
#line 9 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.NavigateUrl =
"ManageComments.aspx";
#line
default#line hidden
System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
#line 9 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(
new System.Web.UI.LiteralControl("Manage Comments"));
#line
default#line hiddenreturn @__ctrl;
}
private global::System.Web.UI.WebControls.HyperLink @__BuildControllnkAddNewArticle() {
global::System.Web.UI.WebControls.HyperLink @__ctrl;
#line 10 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl =
new global::System.Web.UI.WebControls.HyperLink();
#line
default#line hidden
this.lnkAddNewArticle = @__ctrl;@__ctrl.TemplateControl = this;
@__ctrl.ApplyStyleSheetSkin(
this);
#line 10 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.ID =
"lnkAddNewArticle";
#line
default#line hidden
#line 10 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.NavigateUrl =
"AddEditArticle.aspx";
#line
default#line hidden
System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
#line 10 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(
new System.Web.UI.LiteralControl("Add New Article"));
#line
default#line hiddenreturn @__ctrl;
}
private global::ASP.controls_articlelisting_ascx @__BuildControlArticleListing1() {
global::ASP.controls_articlelisting_ascx @__ctrl;
#line 14 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl =
new global::ASP.controls_articlelisting_ascx();
#line
default#line hidden
this.ArticleListing1 = @__ctrl;
#line 14 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.InitializeAsUserControl(
this.Page);
#line
default#line hidden
#line 14 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.ID =
"ArticleListing1";
#line
default#line hidden
#line 14 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.PublishedOnly =
false;
#line
default#line hiddenreturn @__ctrl;
}
private void @__BuildControlMainContent(System.Web.UI.Control @__ctrl) {
System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(
new System.Web.UI.LiteralControl("\r\n <div class=\"sectiontitle\">Manage Articles</div>\r\n <p></p>\r\n <ul style=\"l" +"ist-style-type: square\">\r\n <li>"));
#line
default#line hidden
global::System.Web.UI.WebControls.HyperLink @__ctrl1;
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl1 =
this.@__BuildControllnkManageCategories();
#line
default#line hidden
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(@__ctrl1);
#line
default#line hidden
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(
new System.Web.UI.LiteralControl("</li>\r\n <!-- \r\n <li>"));
#line
default#line hidden
global::System.Web.UI.WebControls.HyperLink @__ctrl2;
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl2 =
this.@__BuildControllnkManageComments();
#line
default#line hidden
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(@__ctrl2);
#line
default#line hidden
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(
new System.Web.UI.LiteralControl("</li>\r\n <li>"));
#line
default#line hidden
global::System.Web.UI.WebControls.HyperLink @__ctrl3;
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl3 =
this.@__BuildControllnkAddNewArticle();
#line
default#line hidden
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(@__ctrl3);
#line
default#line hidden
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(
new System.Web.UI.LiteralControl("</li>\r\n -->\r\n </ul>\r\n <p></p>\r\n "));
#line
default#line hidden
global::ASP.controls_articlelisting_ascx @__ctrl4;
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl4 =
this.@__BuildControlArticleListing1();
#line
default#line hidden
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(@__ctrl4);
#line
default#line hidden
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(
new System.Web.UI.LiteralControl("\r\n"));
#line
default#line hidden
}
private void @__BuildControlTree(admin_managearticles_aspx @__ctrl) {
#line 1 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.MasterPageFile =
"~/Template.master";
#line
default#line hidden
#line 1 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.Title =
"UCGSGA - Manage Articles";
#line
default#line hidden
#line 1 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__ctrl.Theme =
"TemplateMonster";
#line
default#line hidden
#line 1 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
this.InitializeCulture();
#line
default#line hidden
#line 3 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
this.AddContentTemplate("MainContent", new System.Web.UI.CompiledTemplateBuilder(new System.Web.UI.BuildTemplateMethod(this.@__BuildControlMainContent)));
#line
default#line hidden
System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
#line 1 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx"
@__parser.AddParsedSubObject(
new System.Web.UI.LiteralControl("\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"));
#line
default#line hidden
}
#line 912304 "C:\Documents and Settings\Administrator\My Documents\Google Talk Received Files\ucgsga-2\ucgsga\Admin\ManageArticles.aspx.cs"
protected override void FrameworkInitialize() {base.FrameworkInitialize();
this.SetStringResourcePointer(global::ASP.admin_managearticles_aspx.@__stringResource, 0);this.@__BuildControlTree(this);
this.AddWrappedFileDependencies(global::ASP.admin_managearticles_aspx.@__fileDependencies);this.Request.ValidateInput();
}
#line
default#line hidden
public override int GetTypeHashCode() {return 792985724;
}
public override void ProcessRequest(System.Web.HttpContext context) {base.ProcessRequest(context);
}
}
}