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 ..
-
Change the Register declaration at the top of the page, in context:
& Lt;% @ reference control = "MyUserControl.ascx"% & gt;
-
In the event of a change in your tab, load uc from the file:
< -
Add control to the page:
Placeholder1 (Add Controls (UK)
Comments
Post a Comment