Page view counter

Dynamic loading of User Controls (.NET1.1)

Last post 03-04-2007 1:26 AM by flanakin. 1 replies.

Sort Posts:

  • Dynamic loading of User Controls (.NET1.1)

    03-03-2007, 10:54 PM
    • Loading...
    • Kannanonline
    • Joined on 03-04-2007, 3:48 AM
    • Posts 1
    • Points 0

    Hello,

    I have seven user controls developed. I have a aspx page which has seven tabs, based on each tab click, I'm loading the user controls dynamically. I'm doing this from the page_load event of my aspx page.

    All my user controls have a common method called "Save". I need to call these methods from the aspx page dynamically when navigating between the tabs. Say, If I'm in tab1 and navigate to tab2, I want to call the save method in Tab1. The save methods basically saves the state of the controls in user control.

    I'm not sure how to do this.

    Any help would be much appreciated!!! 

     

  • Re: Dynamic loading of User Controls (.NET1.1)

    03-04-2007, 1:26 AM
    • Loading...
    • flanakin
    • Joined on 10-05-2003, 3:06 PM
    • Washington, DC area
    • Posts 384
    • Points 1,901
    There are a number of ways to do this. Perhaps the easiest way would be to use the Panel control to determine what tab content is visible and what isn't. Of course, if this was .NET 2.0, I'd suggest the AJAX Control Toolkit's TabContainer control.
    Michael Flanakin | Microsoft Consulting Services
    www.michaelflanakin.com
Page 1 of 1 (2 items)