Web user control - Server.execute

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gvnn

    #1

    Web user control - Server.execute

    Good Morning,
    I have a little problem with User control and Server.Execute method. This is
    my code:

    //Load Top of the Page
    this.Controls.A dd(LoadControl( "/controls/HeaderHTML.ascx "));
    //Load Body
    Server.Execute( strPageUrl);
    //Load Bottom of the page
    this.Controls.A dd(LoadControl( "/controls/FooterHTML.ascx "));

    The problem is that the runtime execute before the server.execute statement
    and then the load the control.
    How can i solve it?

    Thanks

    GvnnRulez


Working...