Control Order of ascx Render

Posted on 2009-02-11
Last Modified: 2012-05-06
I don't know why it's taken me so long to come across this problem, but I can't seem to find any help on it, but when you have multiple ascx's on an aspx page, how do you know the order they process/render in?
(important if one control relies on the output of another)
The order within the design-time markup doesn't seem to make any difference.
I can find stuff on aspx vs ascx, but nothing ascx/ascx
Question by:Silas2
    1 Comment
    LVL 12

    Accepted Solution

    It depends on the Page Life cycle.  Refer below.
    Instead of adding the controls to your aspx page, keep a placeholder for each control and add it dynamically doing the Page_Load in a specified order.  This will ensure that the controls events fire are the same order you are adding.
    Refer, below to add controls dynamically to page

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now