C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Training   ASP.NET Web Hosting    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

Play Silverlight Games or Submit your Silverlight applications and earn 90% AdSense revenue.

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Resources » Articles » ASP.NET/Web Applications »

A better way of working with IE Webcontrol - TabStrip Control


Posted Date: 15 Oct 2005    Resource Type: Articles    Category: ASP.NET/Web Applications
Author: Harish RanganathanMember Level: Gold    
Rating: Points: 10



Introduction


IE Webcontrols are very useful in accomplishing rich user experience for your web applications with the controls like TreeView, TabStrip, MultiPage etc., which are not shipped out of the box with ASP.NET 1.x Versions.


TabStrip & MultiPage Controls


One of the commonly used IE Webcontrol is the TabStrip control. TabStrip control is mostly used in combination with MultiPage control.

TabStrip provides you with Tab Control for your ASP.NET Page through which you can implemented a Tabbed User Interface of Menu, Options etc.,

When we combine MultiPage with TabStrip control, we can show different portions of the Page based on the Tab selected.

This would give a wizard sort of look and feel for your pages where users see different parts of the page on clicking different tabs.

Avoid Postback


One common practice while implementing TabStrip control is to set the AutoPostBack property to True. This way we will be forcing a page refresh when a different Tab is selected. On this event, we populate, initialize the MultiPage associated with the Tab that is selected.

The fact to be noted is that, though while development, the Server lies in your local machine and the PostBack is not noticably slow, in real world scenarios, the postback may take quite some time before showing the other MultiPage.

This causes not only an irritating flashing of the page but the selected tab takes sometime to complete the events associated with it and gives an ugly look and feel until it is fully loaded.

A better way to handle this is to load, initialize all the multipages in the Page_Load or any other single event (DropDown selection etc.,) and then make it available for switching between tabs. You need to set the AutoPostBack property to false to avoid the PostBack.

If we load and intialize all the MultiPages in one single event, though it takes a little time initially to complete, later it provides a rich look and feel by avoiding a PostBack and ugly flashing of page everytime the Tab selected is changed.

Also, by this way you can also preserve the Controls' state across Tab switches. When you disable autopostback, you can notice that though you switch between the tabs, the controls in each tab dont lose their state. On the contrary if you have autopostback to true, you will be populating / initializing them on each postback and hence they may lose their state.

Thus, we can have a better way of displaying contents with IE Tabstrip webcontrol.

Article's Limitation


This article holds good only for ASP.NET 1.x versions since with ASP.NET 2.0 (scheduled to release this year), there are better controls than IE Webcontrols.

Summary


This article discussed on how we can use IE Webcontrols in a better way for improving user experience for web applications.




Responses

Author: Advitya Chandak    24 Oct 2005Member Level: Bronze   Points : 0
what are better ways in VS .NET 2005 to show tab strips and multiple pages


Author: ravi kolavennu    10 Aug 2006Member Level: Bronze   Points : 0
how to download this code?


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to get the Selected Value of all List controls that are present in a Page
Previous Resource: Universal Search Engine for MS Access database
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET/Web Applications


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use