My web application's main page is having 6 tabs and they are full with controls. So it is very slow in opening. What are the way to avoid loading the contents of all tabs and just loading a default one?
Thanks in advance.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
durgaprasad rangula4 reputationPosted Apr 27, 2011, 6:46 AM EDT
Create UserControl for every tab content and load UserControls dynamically using tab click event.
Sam HobbsRank #107 · 20.5K reputationPosted Apr 27, 2011, 5:13 PM EDT
So I might be wrong and I don't want to give an answer if you are going to say I am wrong as if I should know what you need. You don't tell us much.
Perhaps you need to use a BackgroundWorker to do some of the work for each of the tabs or some of the tabs or whatever. It might be a little complicated and advanced but without knowing much about your application, a BackgroundWorker is the best I can think of.
Shalini JunejaRank #351 · 7.1K reputationPosted Apr 27, 2011, 7:48 PM EDT
http://docs.jquery.com/UI/Tabs
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/
Hope this will help you.
omkar mhaiskar84 reputationPosted Apr 27, 2011, 10:16 PM EDT
As per durgaprasad said. you just put ajax tab TabContainer and use usercontrols in tabcontainer.
You could fire an event from your first user control so that the page can handle this event and tell the other usercontrol to databind.
Here is a example
ID="TabContainer2" runat="server" CssClass="EmployeeProfile" ActiveTabIndex="0"> ID="TabPanel1" runat="server" HeaderText="Datos Generales"> /> ID="EmployeeGeneralDetails2" runat="server" OnUpdated="EmployeeGeneralDetails2_OnUpdated" /> ID="TabPanel2" runat="server" HeaderText="Referenias Personales"> ID="EmployeeResumeView2" runat="server" /> Here codebehind code protected void EmployeeGeneralDetails2_OnUpdated(object o, EventArgs e) { EmployeeResumeView2.DataBind(); }