Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to generate Page Oninit event

How to generate Page Oninit event

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-nettutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NetBot
    wrote on last edited by
    #1

    Hi all, I am using aspnet 2.0 with C#.NET as language. Can any on pls help me out generating an init event . I saw some articles which say directly write a n event in code behind as protected override void Page_OnInit() { .... .... } but it gives an error Error DBControls.Page_Init()': no suitable method found to override.. what might be the problem?

    S 1 Reply Last reply
    0
    • N NetBot

      Hi all, I am using aspnet 2.0 with C#.NET as language. Can any on pls help me out generating an init event . I saw some articles which say directly write a n event in code behind as protected override void Page_OnInit() { .... .... } but it gives an error Error DBControls.Page_Init()': no suitable method found to override.. what might be the problem?

      S Offline
      S Offline
      SABhatti
      wrote on last edited by
      #2

      check this out Page_Init()

      -----

      N 1 Reply Last reply
      0
      • S SABhatti

        check this out Page_Init()

        -----

        N Offline
        N Offline
        NetBot
        wrote on last edited by
        #3

        Thanks for ur reply.. I found that the link you provided explains init event for ASP.NET 1.1. I am familiar with it. I m searching for ASP.NET 2.0.

        S 1 Reply Last reply
        0
        • N NetBot

          Thanks for ur reply.. I found that the link you provided explains init event for ASP.NET 1.1. I am familiar with it. I m searching for ASP.NET 2.0.

          S Offline
          S Offline
          SABhatti
          wrote on last edited by
          #4

          try this protected override void OnInit(EventArgs e) { //custom code base.OnInit(e); } also check this article

          -----

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups