UserControl on ASPX Page

Topics: ASP.NET 2.0, Controls
Apr 19, 2009 at 12:06 PM
I am getting this error with a userControl i am trying to drop onto a created ASPX Page. The Page inherits from the BlogBasePage which I know is the problem but i cannot find a way round it

Server Error in '/BlogEngine.Web' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1502: The best overloaded method match for 'System.Web.UI.UserControl.InitializeAsUserControl(System.Web.UI.Page)' has some invalid arguments

Source Error:

Line 19:      
Line 20:   </div>
Line 21:   <uc1:newsblogroll id="NewsBlogRoll1" runat="server" />
Line 22: </asp:content>

Source File: d:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx    Line: 21


Show Detailed Compiler Output:

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_hp5tcvg-.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_global.asax.brbntexu.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Management\2.0.0.0__b03f5f7f11d50a3a\System.Management.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Code.xmshsfut.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\assembly\dl3\bc9c5de8\d0ef5f7c_dcc0c901\BlogEngine.Core.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_blcnaj9h.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_GlobalResources.wlphh9jb.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\afppfacm.res" /w:4 /nowarn:1659;1699;1701  "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.17.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.23.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.18.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.16.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.12.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.15.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.21.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.24.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.22.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.10.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.8.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.9.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.6.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.7.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.4.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.5.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.2.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.3.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.0.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.1.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.13.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.25.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.11.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.26.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.14.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.19.cs" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\blogengine.web\8e05ff1e\bf0594ac\App_Web_afppfacm.20.cs"


Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.3053
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

d:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx(21,13): error CS1502: The best overloaded method match for 'System.Web.UI.UserControl.InitializeAsUserControl(System.Web.UI.Page)' has some invalid arguments
d:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx(21,45): error CS1503: Argument '1': cannot convert from 'BlogEngine.Core.Page' to 'System.Web.UI.Page'

Show Complete Compilation Source:

Line 1:    #pragma checksum "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9F07CAADC09A4F87922B6414A2DD02F1"
Line 2:    //------------------------------------------------------------------------------
Line 3:    // <auto-generated>
Line 4:    //     This code was generated by a tool.
Line 5:    //     Runtime Version:2.0.50727.3053
Line 6:    //
Line 7:    //     Changes to this file may cause incorrect behavior and will be lost if
Line 8:    //     the code is regenerated.
Line 9:    // </auto-generated>
Line 10:   //------------------------------------------------------------------------------
Line 11:   
Line 12:   
Line 13:   
Line 14:   public partial class news {
Line 15:       
Line 16:       
Line 17:       #line 11 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 18:       protected global::System.Web.UI.WebControls.PlaceHolder plcLeft;
Line 19:       
Line 20:       #line default
Line 21:       #line hidden
Line 22:       
Line 23:       
Line 24:       #line 16 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 25:       protected global::System.Web.UI.HtmlControls.HtmlGenericControl h1Title;
Line 26:       
Line 27:       #line default
Line 28:       #line hidden
Line 29:       
Line 30:       
Line 31:       #line 17 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 32:       protected global::System.Web.UI.HtmlControls.HtmlGenericControl divText;
Line 33:       
Line 34:       #line default
Line 35:       #line hidden
Line 36:       
Line 37:       
Line 38:       #line 21 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 39:       protected global::ASP.user_controls_newsblogroll_ascx NewsBlogRoll1;
Line 40:       
Line 41:       #line default
Line 42:       #line hidden
Line 43:       
Line 44:       protected System.Web.Profile.DefaultProfile Profile {
Line 45:           get {
Line 46:               return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));
Line 47:           }
Line 48:       }
Line 49:       
Line 50:       protected ASP.global_asax ApplicationInstance {
Line 51:           get {
Line 52:               return ((ASP.global_asax)(this.Context.ApplicationInstance));
Line 53:           }
Line 54:       }
Line 55:   }
Line 56:   namespace ASP {
Line 57:       
Line 58:       #line 284 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 59:       using System.Web.Security;
Line 60:       
Line 61:       #line default
Line 62:       #line hidden
Line 63:       
Line 64:       #line 281 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 65:       using System.Web;
Line 66:       
Line 67:       #line default
Line 68:       #line hidden
Line 69:       
Line 70:       #line 283 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 71:       using System.Web.SessionState;
Line 72:       
Line 73:       #line default
Line 74:       #line hidden
Line 75:       
Line 76:       #line 279 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 77:       using System.Text;
Line 78:       
Line 79:       #line default
Line 80:       #line hidden
Line 81:       
Line 82:       #line 9 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 83:       using System.Web.UI.WebControls;
Line 84:       
Line 85:       #line default
Line 86:       #line hidden
Line 87:       
Line 88:       #line 285 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 89:       using System.Web.Profile;
Line 90:       
Line 91:       #line default
Line 92:       #line hidden
Line 93:       
Line 94:       #line 276 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 95:       using System.Collections;
Line 96:       
Line 97:       #line default
Line 98:       #line hidden
Line 99:       
Line 100:      #line 9 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 101:      using System.Web.UI.WebControls.WebParts;
Line 102:      
Line 103:      #line default
Line 104:      #line hidden
Line 105:      
Line 106:      #line 278 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 107:      using System.Configuration;
Line 108:      
Line 109:      #line default
Line 110:      #line hidden
Line 111:      
Line 112:      #line 275 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 113:      using System;
Line 114:      
Line 115:      #line default
Line 116:      #line hidden
Line 117:      
Line 118:      #line 5 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 119:      using ASP;
Line 120:      
Line 121:      #line default
Line 122:      #line hidden
Line 123:      
Line 124:      #line 282 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 125:      using System.Web.Caching;
Line 126:      
Line 127:      #line default
Line 128:      #line hidden
Line 129:      
Line 130:      #line 286 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 131:      using System.Web.UI;
Line 132:      
Line 133:      #line default
Line 134:      #line hidden
Line 135:      
Line 136:      #line 277 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 137:      using System.Collections.Specialized;
Line 138:      
Line 139:      #line default
Line 140:      #line hidden
Line 141:      
Line 142:      #line 2 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 143:      using BlogEngine.Core;
Line 144:      
Line 145:      #line default
Line 146:      #line hidden
Line 147:      
Line 148:      #line 280 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 149:      using System.Text.RegularExpressions;
Line 150:      
Line 151:      #line default
Line 152:      #line hidden
Line 153:      
Line 154:      #line 289 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 155:      using System.Web.UI.HtmlControls;
Line 156:      
Line 157:      #line default
Line 158:      #line hidden
Line 159:      
Line 160:      
Line 161:      [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 162:      public class news_aspx : global::news, System.Web.IHttpHandler {
Line 163:          
Line 164:          private static bool @__initialized;
Line 165:          
Line 166:          private static object @__fileDependencies;
Line 167:          
Line 168:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 169:          public news_aspx() {
Line 170:              string[] dependencies;
Line 171:              
Line 172:              #line 912304 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx.cs"
Line 173:              ((global::System.Web.UI.Page)(this)).AppRelativeVirtualPath = "~/News.aspx";
Line 174:              
Line 175:              #line default
Line 176:              #line hidden
Line 177:              if ((global::ASP.news_aspx.@__initialized == false)) {
Line 178:                  dependencies = new string[20];
Line 179:                  dependencies[0] = "~/themes/New/site.master";
Line 180:                  dependencies[1] = "~/themes/New/Controls/NewsLetterSignup.ascx.cs";
Line 181:                  dependencies[2] = "~/themes/New/Controls/AskBarbera.ascx.cs";
Line 182:                  dependencies[3] = "~/themes/New/Controls/Search.ascx";
Line 183:                  dependencies[4] = "~/themes/New/Controls/AskBarbera.ascx";
Line 184:                  dependencies[5] = "~/themes/New/Controls/AdRotator.ascx.cs";
Line 185:                  dependencies[6] = "~/User controls/NewsBlogRoll.ascx.cs";
Line 186:                  dependencies[7] = "~/themes/New/Controls/Search.ascx.cs";
Line 187:                  dependencies[8] = "~/themes/New/Controls/RecentNews.ascx.cs";
Line 188:                  dependencies[9] = "~/themes/New/Controls/LivingHomeSafetyList.ascx";
Line 189:                  dependencies[10] = "~/News.aspx";
Line 190:                  dependencies[11] = "~/themes/New/site.master.cs";
Line 191:                  dependencies[12] = "~/themes/New/Controls/AdRotator.ascx";
Line 192:                  dependencies[13] = "~/User controls/NewsBlogRoll.ascx";
Line 193:                  dependencies[14] = "~/themes/New/Controls/SiteAwards.ascx";
Line 194:                  dependencies[15] = "~/News.aspx.cs";
Line 195:                  dependencies[16] = "~/themes/New/Controls/RecentNews.ascx";
Line 196:                  dependencies[17] = "~/themes/New/Controls/SiteAwards.ascx.cs";
Line 197:                  dependencies[18] = "~/themes/New/Controls/LivingHomeSafetyList.ascx.cs";
Line 198:                  dependencies[19] = "~/themes/New/Controls/NewsLetterSignup.ascx";
Line 199:                  global::ASP.news_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);
Line 200:                  global::ASP.news_aspx.@__initialized = true;
Line 201:              }
Line 202:              this.Server.ScriptTimeout = 30000000;
Line 203:          }
Line 204:          
Line 205:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 206:          private global::System.Web.UI.WebControls.PlaceHolder @__BuildControlplcLeft() {
Line 207:              global::System.Web.UI.WebControls.PlaceHolder @__ctrl;
Line 208:              
Line 209:              #line 11 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 210:              @__ctrl = new global::System.Web.UI.WebControls.PlaceHolder();
Line 211:              
Line 212:              #line default
Line 213:              #line hidden
Line 214:              this.plcLeft = @__ctrl;
Line 215:              @__ctrl.TemplateControl = this;
Line 216:              
Line 217:              #line 11 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 218:              @__ctrl.ID = "plcLeft";
Line 219:              
Line 220:              #line default
Line 221:              #line hidden
Line 222:              return @__ctrl;
Line 223:          }
Line 224:          
Line 225:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 226:          private void @__BuildControlcphLeft(System.Web.UI.Control @__ctrl) {
Line 227:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
Line 228:              
Line 229:              #line 9 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 230:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n\r\n   "));
Line 231:              
Line 232:              #line default
Line 233:              #line hidden
Line 234:              global::System.Web.UI.WebControls.PlaceHolder @__ctrl1;
Line 235:              
Line 236:              #line 9 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 237:              @__ctrl1 = this.@__BuildControlplcLeft();
Line 238:              
Line 239:              #line default
Line 240:              #line hidden
Line 241:              
Line 242:              #line 9 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 243:              @__parser.AddParsedSubObject(@__ctrl1);
Line 244:              
Line 245:              #line default
Line 246:              #line hidden
Line 247:              
Line 248:              #line 9 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 249:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n\r\n"));
Line 250:              
Line 251:              #line default
Line 252:              #line hidden
Line 253:          }
Line 254:          
Line 255:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 256:          private global::System.Web.UI.HtmlControls.HtmlGenericControl @__BuildControlh1Title() {
Line 257:              global::System.Web.UI.HtmlControls.HtmlGenericControl @__ctrl;
Line 258:              
Line 259:              #line 16 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 260:              @__ctrl = new global::System.Web.UI.HtmlControls.HtmlGenericControl("h1");
Line 261:              
Line 262:              #line default
Line 263:              #line hidden
Line 264:              this.h1Title = @__ctrl;
Line 265:              @__ctrl.TemplateControl = this;
Line 266:              
Line 267:              #line 16 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 268:              @__ctrl.ID = "h1Title";
Line 269:              
Line 270:              #line default
Line 271:              #line hidden
Line 272:              
Line 273:              #line 16 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 274:              @__ctrl.Visible = false;
Line 275:              
Line 276:              #line default
Line 277:              #line hidden
Line 278:              return @__ctrl;
Line 279:          }
Line 280:          
Line 281:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 282:          private global::System.Web.UI.HtmlControls.HtmlGenericControl @__BuildControldivText() {
Line 283:              global::System.Web.UI.HtmlControls.HtmlGenericControl @__ctrl;
Line 284:              
Line 285:              #line 17 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 286:              @__ctrl = new global::System.Web.UI.HtmlControls.HtmlGenericControl("div");
Line 287:              
Line 288:              #line default
Line 289:              #line hidden
Line 290:              this.divText = @__ctrl;
Line 291:              @__ctrl.TemplateControl = this;
Line 292:              
Line 293:              #line 17 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 294:              @__ctrl.ID = "divText";
Line 295:              
Line 296:              #line default
Line 297:              #line hidden
Line 298:              return @__ctrl;
Line 299:          }
Line 300:          
Line 301:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 302:          private global::ASP.user_controls_newsblogroll_ascx @__BuildControlNewsBlogRoll1() {
Line 303:              global::ASP.user_controls_newsblogroll_ascx @__ctrl;
Line 304:              
Line 305:              #line 21 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 306:              @__ctrl = new global::ASP.user_controls_newsblogroll_ascx();
Line 307:              
Line 308:              #line default
Line 309:              #line hidden
Line 310:              this.NewsBlogRoll1 = @__ctrl;
Line 311:              
Line 312:              #line 21 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 313:              @__ctrl.InitializeAsUserControl(this.Page);
Line 314:              
Line 315:              #line default
Line 316:              #line hidden
Line 317:              
Line 318:              #line 21 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 319:              @__ctrl.ID = "NewsBlogRoll1";
Line 320:              
Line 321:              #line default
Line 322:              #line hidden
Line 323:              return @__ctrl;
Line 324:          }
Line 325:          
Line 326:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 327:          private void @__BuildControlContent1(System.Web.UI.Control @__ctrl) {
Line 328:              global::System.Web.UI.HtmlControls.HtmlGenericControl @__ctrl1;
Line 329:              
Line 330:              #line 14 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 331:              @__ctrl1 = this.@__BuildControlh1Title();
Line 332:              
Line 333:              #line default
Line 334:              #line hidden
Line 335:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
Line 336:              
Line 337:              #line 14 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 338:              @__parser.AddParsedSubObject(@__ctrl1);
Line 339:              
Line 340:              #line default
Line 341:              #line hidden
Line 342:              global::System.Web.UI.HtmlControls.HtmlGenericControl @__ctrl2;
Line 343:              
Line 344:              #line 14 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 345:              @__ctrl2 = this.@__BuildControldivText();
Line 346:              
Line 347:              #line default
Line 348:              #line hidden
Line 349:              
Line 350:              #line 14 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 351:              @__parser.AddParsedSubObject(@__ctrl2);
Line 352:              
Line 353:              #line default
Line 354:              #line hidden
Line 355:              global::ASP.user_controls_newsblogroll_ascx @__ctrl3;
Line 356:              
Line 357:              #line 14 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 358:              @__ctrl3 = this.@__BuildControlNewsBlogRoll1();
Line 359:              
Line 360:              #line default
Line 361:              #line hidden
Line 362:              
Line 363:              #line 14 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 364:              @__parser.AddParsedSubObject(@__ctrl3);
Line 365:              
Line 366:              #line default
Line 367:              #line hidden
Line 368:              @__ctrl.SetRenderMethodDelegate(new System.Web.UI.RenderMethod(this.@__RenderContent1));
Line 369:          }
Line 370:          
Line 371:          private void @__RenderContent1(System.Web.UI.HtmlTextWriter @__w, System.Web.UI.Control parameterContainer) {
Line 372:              @__w.Write("\r\n  <div id=\"page\">\r\n    ");
Line 373:              parameterContainer.Controls[0].RenderControl(@__w);
Line 374:              @__w.Write("\r\n    ");
Line 375:              parameterContainer.Controls[1].RenderControl(@__w);
Line 376:              @__w.Write("    \r\n    ");
Line 377:              
Line 378:              #line 18 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 379:  @__w.Write(AdminLinks );
Line 380:  
Line 381:              
Line 382:              #line default
Line 383:              #line hidden
Line 384:              @__w.Write("\r\n     \r\n  </div>\r\n  ");
Line 385:              parameterContainer.Controls[2].RenderControl(@__w);
Line 386:              @__w.Write("\r\n");
Line 387:          }
Line 388:          
Line 389:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 390:          private void @__BuildControlTree(news_aspx @__ctrl) {
Line 391:              
Line 392:              #line 1 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 393:              @__ctrl.MasterPageFile = "~/themes/New/site.master";
Line 394:              
Line 395:              #line default
Line 396:              #line hidden
Line 397:              
Line 398:              #line 1 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 399:              this.InitializeCulture();
Line 400:              
Line 401:              #line default
Line 402:              #line hidden
Line 403:              
Line 404:              #line 9 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 405:              this.AddContentTemplate("cphLeft", new System.Web.UI.CompiledTemplateBuilder(new System.Web.UI.BuildTemplateMethod(this.@__BuildControlcphLeft)));
Line 406:              
Line 407:              #line default
Line 408:              #line hidden
Line 409:              
Line 410:              #line 14 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 411:              this.AddContentTemplate("cphBody", new System.Web.UI.CompiledTemplateBuilder(new System.Web.UI.BuildTemplateMethod(this.@__BuildControlContent1)));
Line 412:              
Line 413:              #line default
Line 414:              #line hidden
Line 415:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
Line 416:              
Line 417:              #line 1 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 418:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n"));
Line 419:              
Line 420:              #line default
Line 421:              #line hidden
Line 422:              
Line 423:              #line 1 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx"
Line 424:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n"));
Line 425:              
Line 426:              #line default
Line 427:              #line hidden
Line 428:          }
Line 429:          
Line 430:          
Line 431:          #line 912304 "D:\My Documents\freelance\01\Source\BlogEngine.Web\News.aspx.cs"
Line 432:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 433:          protected override void FrameworkInitialize() {
Line 434:              base.FrameworkInitialize();
Line 435:              this.@__BuildControlTree(this);
Line 436:              this.AddWrappedFileDependencies(global::ASP.news_aspx.@__fileDependencies);
Line 437:              this.Request.ValidateInput();
Line 438:          }
Line 439:          
Line 440:          #line default
Line 441:          #line hidden
Line 442:          
Line 443:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 444:          public override int GetTypeHashCode() {
Line 445:              return -1758288960;
Line 446:          }
Line 447:          
Line 448:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 449:          public override void ProcessRequest(System.Web.HttpContext context) {
Line 450:              base.ProcessRequest(context);
Line 451:          }
Line 452:      }
Line 453:  }
Line 454:  



Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Apr 19, 2009 at 3:08 PM
Well, if anyone else has this problem, it is down to if you have a variable in the page called 'Page'. With the page.aspx in particularthis will happen. I simply renamed Page to _Page and it now works correctly.