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:
Dim ctl As Programs
ctl = CType(Me.LoadControl("Programs.ascx"), Programs)
ctl.Attributes.Add("style", "left:1;top: 1;width:100; height:100;")
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!