473,602 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ajax TabContainer behaviour like Windows TabControl?

Hi,

I am working on a website where i am creating Horizontal Menus Dynamically
from database as per rights available to the user. I have several
UserControls. And the Menu control also brings UserControl's URL stored in
Database while Page load.

There is a TabContainer control below the Menu Control.

Now i want to add corresponding UserControl dynamically when user clicks on
any MenuItem. also want to load data while UserControl loaded.

Page PostBack is the enemy of all Web Developers... and so is mine..

I don't want to load already added userControls again, everytime the user
clicks any new MenuItem as when menuitem click start postback. The
Application is very much data driven, loading heavy data again and again
would not be the greatway to deal with.

Only the selected usercontrol should be added and it should not effect any
other things on page like Windows TabControl. Think like Windows TabControl
where we can switch between windows and we receive that previous tab in
status we left.

I know it's not at all a easy thing but it is possible..

The thing is when i am clicking any MenuItem ,corresponding TabControl
is getting added in TabContainer but TabContainer due to page Postback is
losing the last added Tab. Means it is showing only the Latest added Tab on
every menuItem click.

Then i tried keeping Menu Control in Update Panel so that whole page will
not refreshed. In this way it's not even adding any UserControl on
TabContainer. It is going with in the Eventhandler but seems to be like
update panel asynchronous postback is not happening. when i debugged this
then i got that everything is null. even UserControl object is also null
which MenuItem click is bringing from server side...

don't know exactly what's happening here..

Please pls pls help me... anyways thanks for all. Guys, waiting for
replies .
Aug 18 '08 #1
1 3381
the current ms ajax library is not up to this. it counts on the update panel
(which is really a postback approach) for dynamic controls.

look at jquery, as it has the features you need. also the next ms ajax
library (at least the mvc version) is copying the concepts of jquery.
-- bruce (sqlwork.com)
"Mohsin Khan" wrote:
Hi,

I am working on a website where i am creating Horizontal Menus Dynamically
from database as per rights available to the user. I have several
UserControls. And the Menu control also brings UserControl's URL stored in
Database while Page load.

There is a TabContainer control below the Menu Control.

Now i want to add corresponding UserControl dynamically when user clicks on
any MenuItem. also want to load data while UserControl loaded.

Page PostBack is the enemy of all Web Developers... and so is mine..

I don't want to load already added userControls again, everytime the user
clicks any new MenuItem as when menuitem click start postback. The
Application is very much data driven, loading heavy data again and again
would not be the greatway to deal with.

Only the selected usercontrol should be added and it should not effect any
other things on page like Windows TabControl. Think like Windows TabControl
where we can switch between windows and we receive that previous tab in
status we left.

I know it's not at all a easy thing but it is possible..

The thing is when i am clicking any MenuItem ,corresponding TabControl
is getting added in TabContainer but TabContainer due to page Postback is
losing the last added Tab. Means it is showing only the Latest added Tab on
every menuItem click.

Then i tried keeping Menu Control in Update Panel so that whole page will
not refreshed. In this way it's not even adding any UserControl on
TabContainer. It is going with in the Eventhandler but seems to be like
update panel asynchronous postback is not happening. when i debugged this
then i got that everything is null. even UserControl object is also null
which MenuItem click is bringing from server side...

don't know exactly what's happening here..

Please pls pls help me... anyways thanks for all. Guys, waiting for
replies .
Aug 18 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2439
by: ma | last post by:
Hello, I installed the latest version of AJAX toolkit today and start playing with it. I can not add any AJAX control to my page. When I try to add it, it is added as follow: <cc1:TabContainer ID="TabContainer1" runat="server">
0
1160
by: tutus | last post by:
Hi, related to Asp.net Ajax Control Toolkit: In a TabContainer with two tabPanels, when I click on the second TabPanel, how can I cancel the TabPanel change event (or the TabPanel change action) and force the TabContainer to stay on the same current TabPanel? Thank you very much.
3
2817
malav123
by: malav123 | last post by:
Hi, I am using ajax tabcontainer in my project, i have master page in which there is left pannel,right panel,header,footer and content place holder... my content place holder's width is 900px so i want my tabcontainer with the same width.. but when i gives 800 above width the right side of tabcontainer gets cut... so max width is 800px ??? please reply it's urgent.... -malav.
1
5205
by: mistryman06 | last post by:
Hi, I'm new to the ASP.NET Ajax. Im struck with an issue. Im having a tabcontainer with 3 tabs. Each tab has a user control (all 3 tab has the same user control) & the user control has a Button & ModalPopup Extender. While running the application, When I click the TAB1's Button i get a modalpopup in the page. But when i select the TAB2 and click on the Button. Im not getting any modalpopup in the 2nd tab rather i see the modal popup in...
2
686
by: =?Utf-8?B?TW9oc2luIEtoYW4=?= | last post by:
Hi, I am working on a website where i am creating Horizontal Menus Dynamically from database as per rights available to the user. I have several UserControls. And the Menu control also brings UserControl's URL stored in Database while Page load. There is a TabContainer control below the Menu Control. Now i want to add corresponding UserControl dynamically when user clicks on
2
4501
by: =?Utf-8?B?Q29sb3JzdG9uZQ==?= | last post by:
Hi, I have a TabContainer inside a data bound FormView (to logically group the form fields into different tabs). The display part of the data binding works fine, but the Update doesn't. Basically the FormView cannot find the TextBoxes inside the tab container's tab panels. Some of the forums say that it's because of the TabContainer's implementation (by design) of "INamingContainer", and a hack is to take control of the TabContainer's...
7
6646
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a tabcontainer which has 1 panel already, however I want to try create the TabPanels dynamically. I followed the advice here: http://www.asp.net/learn/ajax-videos/video-156.aspx (3rd comment - Joe Stagner)
5
7503
by: temijojo | last post by:
Hello, Can someone help me in this problem. In my content page, I used 2 user controls inside an Ajax Toolkit TabControl. One of the user controls is a data entry with a dropdownlist. The dropdownlist does not retain its selected value when I make a postback (click an update or save button). But when I run it without Tabcontrol, it's ok. Is there anything I should add to the code? Here's the aspx script: <asp:Content ID="Content2"...
3
5633
by: usha535140 | last post by:
Hi, Can we use Ajax RoundedCornersExtender control with AJax,tabContainer?
0
7920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8404
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8268
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5867
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3900
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.