PC Review


Reply
Thread Tools Rate Thread

Ajax TabContainer behaviour like Windows TabControl?

 
 
Mohsin Khan
Guest
Posts: n/a
 
      18th Aug 2008
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 .
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      18th Aug 2008
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 .

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX's TabContainer gives an error AAaron123 Microsoft ASP .NET 2 18th Oct 2009 02:52 PM
Ajax TabContainer behaviour like Windows TabControl? Mohsin Khan Microsoft ASP .NET 2 14th Aug 2008 08:38 AM
Ajax TabContainer & ModalPopupExtender mistryman06@gmail.com Microsoft ASP .NET 1 24th Apr 2008 06:38 AM
Little problem with TabContainer (ajax) laziers@gmail.com Microsoft ASP .NET 1 19th Jan 2008 06:40 AM
AJAX TabContainer Problem =?Utf-8?B?QW5kcmV3?= Microsoft ASP .NET 0 27th Sep 2007 10:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:02 AM.