.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

can the tabcontainer tabs be made accessible - with the user tabbing along them with their keyboard?

Posted By:      Posted Date: September 27, 2010    Points: 0   Category :ASP.Net

We have some tabContainers on our site and we would like to make them accessible.

So that the user can access each tab with their keyboard.

i.e. navigate with the tab key on their keyboard instead of their mouse.

is this possible?

thanks in advance.

View Complete Post

More Related Resource Links

ASP.net Ajax TabContainer -- Printing All tabs



Can  anyone help me with this?. I want to print all the tabs in ajax tab container. The tab container has around 10 tabs. I dont want to goto each tab and print the page. Instead is there any way by which I can tweek the print.css file to print all the tabs at a single stretch?.  So that I will get all the contents of the tab in single print.  Is there any other way in which I can print all the tabs all together?.

Thanks in Advance...


Defaults and User Defined Types Tabs in SSMS

Hello, Just to make sure I was using all the available tools for the right purpose, I have been going through all the tabs I haven't used in SSMS. I've managed to research what they all mean but two have me a little stumped. These two tabs are: [Database]->Programmability->Defaults Quite hard to search for help on as the word default is used to explain a lot of different things! [Database]->Programmability->Types->User-Defined Types I understand what "User-Defined Table Types" and "User-Defined Date Types" are, so what goes in "User-Defined Types"? Can anyone explain what these are? Thanks very much

AJAX tabcontainer, User Control and Sharepoint UserProfile

Hi All, I am working on following requirement. There is AJAX control, tabcontainer which is added in a user control which inturn is loaded in a sharepoint web part. Controls added int the tabcontainer include textboxes, a drop downbox and a button.On Page load I am connecting to sharepoint logged in user profile and display the information in the tabcontainer. I have kept provision to change the values for some fields which the user can change. On click of submit button the data should get saved to the same user profile and the tabcontainer should get refreshed with the new values entered. Problem Faced: On Page load all the values get populated to the controls placed in tabcontainer. But when I do any change in the control and click on submit, the changed values are not getting displayed instead old values are retained. Please help me in handling postback event. Following is the piece of code on page load and submit button protected void Page_Load(object sender, EventArgs e)         {             using (SPSite ospSite = new SPSite("http://omistestsrv:1995"))             {                 try           

How to make sure that user doesn't open same webpage in two different browsers or browser tabs?



We are using asp.net StateServer for asp.net session management. In our project we need to make sure that if a user is already logged in and if he is trying to acess the website from a different browser tab, we need to inform him that he is already logged in in another tab and use it instead of opening a new session. Consider the following scenarios:

1. User is logged on in tab1 and his session is still on, then user tries to logon from another tab, the browser sends the asp.net session_id cookie, In the page init i am checking if the Asp.net session Id cookie is present, if it is there i am checking if the it is a new Session (i.e. if the existing session timed out), if it is a new session then proceed with the user action else it means that the session in tab1 is still active so i am redirecting user to error page with appropriate message.

Now the problem with this approach is that, suppose session in tab1 is expired and user opens tab2 and performs some actions, now he goes back to tab1 and perform any action, i directly need to take him to log out page.

Please let me know how this can be achieved.

logging out users when user opens website in two browsers or two tabs of same browser.



We have the implement the following scenario in our application:

  1. We use windows authentication. User opens our website in tab1 and does some action but with out clicking on save he opens a new tab tab2 and opens the same website again.
  2. Now, if the user session in tab1 is active i need to warn users that the he is already logged on to application in some other browser and go to some log out page. But if the user session in tab1 is timed out then he must be able to continue with the website in tab2 as usual, but if he tries to do anything in tab1 he should go to session expired page.

I tried implementing it in following way.

  1. I have a hidden field in each page which will be set to unique Id using GUID.NewID().
  2. when user requests for a page the following code is executed.
  3. if (Request.Headers["Cookie"] == null)
                    //this means user is requesting hte page for first time.
                    //Generate a new GUID store it in session and also in the hidden variable on page.
                    Session["DefaultPage"] = Guid.NewGuid().ToString();
                    ((TextBox)page.FindControl("hiddenGUID")).Text = Session["DefaultPage"].ToString();
                else if (Reque

TabContainer with vertical tabs.


High I was wonderif it was possible to make a the tab panel show the tabs vertically, and if so, how?

How to navigate through AJAX TabContainer Tabs using buttons


Hi Forumians,

In a web page i have 5 tabs from 1 st tab to 2 tab

i have to go by a linkbutton click not through header navigation

so i created a link button and in the button click event

i have written the code like below

protected void lnkproceceed2tab3_Click(object sender, EventArgs e)
        TabContainer1.ActiveTab = TabContainer1.Tabs[3];


its sitting in same tab i cant go to the next tab by a link button.

Kindly find a solution and tell me

Is it possible to preserve viewstate when the user opens multiple browser tabs?


I want my users to be able to open multiple browser tabs and be able to switch back and forth between them.  If Viewstate is saved for each page, I should be able to do this right?



Can't select different tabs on AjaxToolkit's TabContainer


Hello guys...

I've been searching the net for the past 3 days looking for solutions for this... but apparently it is only happening to me... As far as I've seen (even in this video: http://www.asp.net/ajax/videos/how-do-i-use-the-aspnet-ajax-tabs-control), TabContainer/TabPanel is pretty much drag & drop. But for some so far unknown reason, I can't click on the tabs to change them, and I can't see the selected tab(there is no difference in the rendering of the tabs to show selected tab).

Is there any javascript function that I have to add to my page by default to make it work?

This is the way the tabContainer is being rendered:

As you can see, even though we know tab 1 is selected, the 3 buttons look the same. And when you try to click "Tab Two" or "Tab Three", it is as if the tabs were read-only...

Anyone has any suggestions on what can I try to do in order to fix this?? My code is as follows... The optional properties that I setted, such as Enabled="true" on the tabpanels, are the tries I've done these past 3 days to fix the p

how to expand a collapsible fieldset when user hit tab button from keyboard?



By using this tutorial Stylish Collapsible Fieldset using CSS3 and JQuery, I have created asp.net web form with collapsible fieldsets. In this when page loads all the fieldsets are collapsed/closed but when user clicks on any fieldset it becomes expand/open.

Now I want to and another feature that when user finishes entery data in the controls of first fieldset and he/she wants to move to the next fieldset then he/she can open it by just hitting/pressing tab from the keyboard.

Here is my Jquery code-

$(document).ready(function() {
        $("legend").click(function() {
        $("fieldset legend").addClass("collapsed");
        $("fieldset legend").nextAll("ul").hide();

Can anyone let me know, what will be the modifications?



TabControl and unloading user controls located in the tabs

I have a hybrid WPF-WinForms application. In an effort to turn it to a pure WPF application I recently made the following change. There was a WinForms TabControl, which had element hosts in each one of its tabs, and those element hosts contained WPF user controls. I took out the WinForms tab control, placed just one single element host there, placed a WPF TabControl in that host, and placed WPF user controls directly in the tabs, since they don't require hosts any more. It seemed to work fine at first, untill I noticed quite a few problems and found out that the WPF tab control raises Loaded and Unloaded events of the user controls every time user switches tabs. I don't want the controls to be unloaded! Is there anything I can do about it? I use VS 2008 and Framework 3.5. Does it work any better in Framework 4.0?

fetch all user and its accessible site


hi ,

i am using this code to


GroupCollection groupCollection = context.Web.SiteGroups;

context.Load(groupCollection, groups => groups.Include(group => group.Users));




foreach (Group group in groupCollection)



UserCollection userCollection = group.Users;


"Your changes conflict with those made concurrently by another user"



We have a custom list in MOSS 2007, which has workflow that are set to start mnually only. Whenever someone tries to edit an item, attach a file and save the item, we get the error that:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.SharePoint.SPException: Save Conflict

        Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.

Source Error:



Server Error in '/' Application.

Save Conflict

        Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.


MS SQL Server: Disconnect Users From Database - Kill User Session

If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

Ready made List Types provided by SharePoint

SharePoint provides some out of the box List Types. Some of the most used ready made list types that SharePoint provides currently are listed below:

Choosing Between a User Control or Web Part for SharePoint

SharePoint will only display Web Parts on a page. However, there are publicly available shims that allow you to write user controls and have them be displayed as a Web Part. From SharePoint's point of view, the shim is a Web Part. From the point of view of the user control, the shim is simply a control in .NET that is including the user control

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend