Senior & Expert .Net Developers Discussion Forum by Nyros Technologies

HIRE .Net Expert Developers Programmers Coders From India
Ruby on Rails PHP .Net Developers Community, Nyros Technologies, Kakinada
 
Log in  or IF not a member please REGISTER
Username:
Password:   


Keyword
Log in | Profile 

Ajax TabContainer behaviour like Windows TabControl?

 
Post new topic   Reply to topic    Senior & Expert .Net Developers Discussion Forum by Nyros Technologies Index -> Ajax.Net
View previous topic :: View next topic  
Author Message
mohsin_khan01



Joined: 18 Aug 2008
Posts: 9
Location: India/Mumbai

PostPosted: Tue Aug 19, 2008 9:28 am    Post subject: Ajax TabContainer behaviour like Windows TabControl? Reply with quote

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 .
Back to top
View user's profile Send private message
manoj



Joined: 21 Aug 2007
Posts: 100

PostPosted: Tue Aug 19, 2008 11:20 am    Post subject: Reply with quote

Hi mohsin,

AFAIK You can store the UserControl URLs in sessions and Save them temporarily in a DataTable . finally rebind them to your Ajax TabContainer.

i hope this will helps you a bit.


all the best....


regards,
manoj
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Senior & Expert .Net Developers Discussion Forum by Nyros Technologies Index -> Ajax.Net
Page 1 of 1

 latest topics 
 Topics   Replies   Author   Views   Last Post 
No new posts Show Notification in Status Bar in Android Application
0 vijayalakshmi 17 Tue Mar 09, 2010 9:36 am
vijayalakshmi View latest post
No new posts Changing the date and time in SQL Server using T-SQL
0 muralikrishna 31 Fri Mar 05, 2010 3:18 pm
muralikrishna View latest post
No new posts Using TableLayout in Android Layout file:
0 vijayalakshmi 32 Fri Mar 05, 2010 5:03 am
vijayalakshmi View latest post
No new posts TabActivity with Intents in Android:
0 vijayalakshmi 28 Fri Mar 05, 2010 4:46 am
vijayalakshmi View latest post
No new posts Show different components in different styles in Android?
0 vijayalakshmi 25 Fri Mar 05, 2010 3:39 am
vijayalakshmi View latest post
No new posts VIEWSTATE SIZE BYTES SHOWS 0 IN TRACE.AXD
1 sanjoo8959 40 Wed Mar 03, 2010 9:18 am
Dileep View latest post
No new posts How to mark incoming Sms as read in Android programatically?
0 vijayalakshmi 31 Mon Mar 01, 2010 1:12 pm
vijayalakshmi View latest post
No new posts How to control(Start,Stop) windows Services in C#?
0 Raghavendra 37 Mon Mar 01, 2010 12:57 pm
Raghavendra View latest post
No new posts Dialog Box with Spinner View in Android:
0 vijayalakshmi 69 Mon Mar 01, 2010 12:24 pm
vijayalakshmi View latest post
No new posts How many PCs in the world have the .NET Framework installed?
0 Raghavendra 33 Mon Mar 01, 2010 11:51 am
Raghavendra View latest post




Hire an expert .Net developer / coder / programmer or development team from India now!!

Other Forums : Ruby on Rails   ::   PHP   |   Free unlimited HTML CSS templates download

Nyros Technologies   |   Kakinada City Portal   |   Developers Blog   |   About .Net Experts   |   More