473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 3347
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
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: ...
0
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...
3
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...
1
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 &...
2
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...
2
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. ...
7
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...
5
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...
3
by: usha535140 | last post by:
Hi, Can we use Ajax RoundedCornersExtender control with AJax,tabContainer?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.