Results 1 to 3 of 3

Thread: Make user control post first

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Make user control post first

    I have a user control that I am using on my web pages. Is there a way to make this user control post first?

    This is the code that I am using to bring in the control.
    VB Code:
    1. Dim ctl As Programs
    2.         ctl = CType(Me.LoadControl("Programs.ascx"), Programs)
    3.         ctl.Attributes.Add("style", "left:1;top: 1;width:100; height:100;")
    4.         Me.FindControl("Form1").Controls.Add(ctl)
    I have this code first thing in my Page_Load event but the rest of the objects on my web pages appear before the objects in my user control appear on the web pages.

    Thanks!
    David Wilhelm

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Question

    Bump?
    David Wilhelm

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Why are you loading a control? Why not just include it on the page?

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