Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7596351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:53:53+00:00 2026-05-30T21:53:53+00:00

I am creating a simple server control which inherits from System.Web.UI.WebControls.DropDownList. This DDL will

  • 0

I am creating a simple server control which inherits from System.Web.UI.WebControls.DropDownList. This DDL will be populated by a list of languages.

I want to know on what event I should populate the DDL with the list from the Database.

OnLoad, OnInit or maybe in the constructor of the class? Does it make any difference?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:53:54+00:00Added an answer on May 30, 2026 at 9:53 pm

    You should always create and initialize dynamic server controls on Init page event.

    As explicitly stated here (“Use this event to read or initialize control properties”) :

    http://msdn.microsoft.com/en-us/library/ms178472.aspx

    also this is a reccomended read :

    ASP.NET Page Life Cycle Overview

    ASP.NET Web Server Control Event Model

    http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/Truly-Understanding-Viewstate.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a simple web server in Ruby, which display's the text LOLZ in
I have a simple ASP.NET Web User Control. It looks like this: <%@ Control
I am creating a web user control for a simple poll. I am currently
I was creating a simple web method to access from Java script..But I am
I'm trying to make a simple HTML server that will read a request from
I am experiencing some performance problems when creating a very simple Python HTTP server.
I'm creating a simple tag system that allows me to link a tag to
I'm creating a simple color picker controlled by a custom slider type control. I'm
I'm creating asp.net mvc login page. This is simple. Same as others. Controller contains
I am creating a web user control for showing Alert on AspxGridView Columns(Delete/Edit) click

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.