Results 1 to 4 of 4

Thread: [2008] order of controls in the aspx

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    25

    [2008] order of controls in the aspx

    if control A is listed in the aspx before control B, does that guarantee that control A's events will be processed before control B's?

    that is, will control A' PreRender always occur before control B's?

    thanks.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2008] order of controls in the aspx

    Quote Originally Posted by gamba
    if control A is listed in the aspx before control B, does that guarantee that control A's events will be processed before control B's?
    No.

    Quote Originally Posted by gamba
    that is, will control A' PreRender always occur before control B's?
    No.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    25

    Re: [2008] order of controls in the aspx

    could you explain to me what the order or controls means, then?
    why, for example, do ajax.net control require the script manager to be declared before every control that uses it?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2008] order of controls in the aspx

    The order of ASP.NET controls will be as ASP.NET pleases. It is according to the control treeview that gets generated for the page and in the viewstate.

    ASP.NET AJAX, though, requires the scriptmanager before all else because the ScriptManager needs to write out JavaScript initialization values that are used by all other ASP.NET AJAX controls on the page. ASP.NET AJAX controls are not the same as ASP.NET controls. AJAX = client side.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width