How to load single user control on selection of a tab in asp.net -


I have provided 15 tabs and 15 user controls for each tab, all of which are being loaded at once, the ID Is delaying the process. I want to load a user control on tab selection in tab container.

Instead of adding all the controls, declare on the page programmatically, on tabbed event . See this link:

Or here is the short version ..

  1. Change the Register declaration at the top of the page, in context:

    & Lt;% @ reference control = "MyUserControl.ascx"% & gt;

  2. In the event of a change in your tab, load uc from the file:

    <

  3. Add control to the page:

    Placeholder1 (Add Controls (UK)


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -