Samuel Haddad

  • About Me
  • Software Projects
    • Dell Service Tag
    • Jango Desktop
    • Open In Firefox
    • Pandora Keys
      • Pandora Keys Features
  • Contact

Recent Post

  • Allow Console Logging with ESLint
  • Nuget File Locations
  • Git disable ssl check.
  • Export Git Repository to zip.
  • Clear cached Git Credentials on Windows.

Categories

  • .NET
  • ASP.NET
  • Development
  • GIT
  • Mobile
  • OsCommerce
  • PHP
  • SharePoint
  • Software
  • SQL
  • SSIS
  • Tech Support
  • Uncategorized
  • Web

About Me

  • G+
  • LinkedIn
  • My Company
  • My GitHub

Donate

Tag: InvalidOperatinExceptiion

ASP.NET system.InvalidOperationException: Script controls may not be registered before PreRender.

September 12, 2014 by Samuel Haddad·0 Comments

Today I ran into the following error.

System.InvalidOperationException: Script controls may not be registered before PreRender.

In my case I was overriding OnPreRender and forgot to include base.OnPreRender(e)

  protected override void OnPreRender(EventArgs e) {
      base.OnPreRender(e); //Don't forget me.
    }

Adding in the the call to base solved the issue.

Proudly powered by WordPress. Theme: Flat 1.7.11 by Themeisle.