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

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

Navigation items disappear after changing permissions

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

I have a site collection with multiple sub-sites. I have created a group on one of the sub-sites which has full control over the sub-site. I add my self to this group then remove all the additional groups from the site permissions, so that only the group with full control is left. After doing this the site is no longer visible in the Navigation bar of the parent site. However I can still have access to the sub-site if I enter its URL.


Can anyone explain why this is happening and how I can get the link to the site to show again in the navigation bar of the parent site?

View Complete Post

More Related Resource Links

How to create a dynamically populated items in a listbox and use it as a navigation?

Hello, I am trying to create navigation inside a listbox menu. I load data from xml to populate a list. Each item in the list box should be a link or button. Then, I create a frame to load xaml pages in it. I tested to load pages employing button control, outside listbox with on click event and it worked well. However, I cannot make it work with list box items. I am hoping to get help from you. Any sample or ideas are highly appreciated. Below is the code:  XML: <?xml version="1.0" encoding="utf-8"?> <Pages> <page id="page01"> <name>Page 01</name> </page> <page id="page02"> <name>Page 02</name> </page> </Pages> C# to initiate a click o n listbox item and get the path to page: private void SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) { ListBoxItem lbi = ((sender as ListBox).SelectedItem as ListBoxItem); string itemName = lbi.Content.ToString(); if ( Nav_ListBox.SelectedItem.Equals("Page01" ) ) { ContentFrame.Source = new Uri("Pages/Page01.xaml", UriKind.RelativeOrAbsolute); } } XAML:  <ListBox x:Name="Nav_ListBox" Margin="0" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Background="#FFF2F2F2" ItemTemplate="{DynamicReso

Changing default permissions for Owners group

When a site is created within SharePoint (and permissions are not inherited from the parent), a default Owners, Members and Visitors group is created.  The default Owners group is assigned "Full Control".  I want this to default to a custom permission level that I have created called "Full Control - Limited".  What changes do I need to make to ensure that all new Owner groups are automatically assigned this custom permission level and NOT "Full Control"? EDIT - I have a console application which sweeps through all of the sites and changes all "Full Control" to "Full Control - Limited" but I really don't want to set a Scheduled Task each night to fix the new groups. 

how to change the permissions list items using the workflow?

How to change the permissions list items using the workflow? Or how to instull SPDActivities on sharepoint 2010?

How to properly configure permissions so users can view, add, edit, and delete list items, but not w

I am trying to figure out how to properly setup security so that it can be configured at the top-level, and then inherited all the way through. Here is what I would like to do: Each user can view, add, edit, and delete list items - but, users cannot modify or delete web part pages. The only way I know how to do this is set Contribute from the top-down, and then go into each Site Pages library and set Read access. The problem is that I have 100 sites, and I was hoping there was a way I could set security at the top, and inherit downward. Rather than having to go into all 100 Site Pages library and set Read access. Is there a way to do this? Thanks in advance.

Changing File Permissions of Disconnected MDF/LDF Files

I am a university professor and have over a hundred student project databases using the developer edition of SQL 2005 and 2008 on a portable hard drive.  All are disconnected from any server.  I need to move these to a new hard drive but no file system tool I can find will let me copy the .mdf or .ldf files.  Each of these files has a single user with permissions and the user is a long alpha/numeric string that seems to have been generated by SQL.  I can copy these files if I select each file individually and give full control permissions to my current login.  On some files I need to first take ownership.  I just don't want to have to go in and do this manually for 200+ files scattered all over the drive. I really need some sort of batch approach (including something that can be launched from within VB which I can use to navigate my drive's folder structure looking for .mdf/.ldf files) to let me change the permissions on these files.  As I said, I have a LOT of them and they are scattered around a deep folder structure organized by semester, course, project team, and sometimes project version.  Further, the files accompany other files such as VB projects, report projects, SSIS projects, etc.  I have access to Windows Vista and Windows 7 for doing this.

Setting permissions to Items/Views in a list

I have a list containing 2 FY's data. I need to make one of the FY year's data as read-only. Can i create a view filtering only this data and make only this view as read-only or do i need to edit permissions of individual items of the filtered FY and set it as read-only. Is there any other way of doing this?

Changing the font size of Folders in left Navigation bar.

Hello guys, I want to change the font size of folders in the tree view of the left Navigation Bar.I am new to CSS. So can you guys let me how do I decrease the font size of folder Thanks

Setting permissions on specific items


I'm following a Books Online tutorial for setting up permissions.  I'm on to the 3rd and final stage of the tutorial, the part where I set specific permissions for users to a folder or a report.  (Here's the web page: http://msdn.microsoft.com/en-us/library/aa337494.aspx)

I'm confused about these instructions from that page:

To create a role definition for navigating folders

  1. In SQL Server Management Studio, connect to a report server, and then expand the report server node.

  2. Open Security folder.

  3. Right-click Roles and select New Role. The New User Role dialog box appears.

  4. In Name, enter Folder Navigation.

  5. In Task, select View Folders.

  6. Click OK.

Assuming step 1 refers to the ReportServer database, should it be a database role or an application role?  And where do I find "Task"?  There must be several errors in this page.  Could somebody please clarify these instructio

Display number of items for each metadata in navigation.



Is it possible to display the count of number of documents for specific keyword category in library's metadata navigation? For instance - Draft (1), Approved (0) - or if categories with no documents were not shown at all.


Changing permissions on a named pipe.


Hi all,

I am trying to interface a Web Service Client with a Server program where
communication is achieved via Named Pipes.  My difficulty is that the
Web Service runs under the "NETWORK SERVICE" system account and the Server
runs under another local account with administrator privilege.  I am trying
to introduce code in the server that grants write access to the pipe to the
"NETWORK SERVICE" account.  I assumed that the following would work:

PipeSecurity pipesec = pipeServer.GetAccessControl();

Unfortunately in this sequence, the call to SetAccessControl produces the
an exception (see below).  I have verified that the routines GetAccessControl
and SetAccessControl can successfully be called in sequence, but, of course,
this is of little utility without the intervening AddAccessRule.

Here is a listing of the sample program.

Quick Launch Items disappear


I’ve set up a Sharepoint Foundation Site with SSL and created some Quick Launch items. However, some of the links often disappear. When I refresh, they appear. Sometimes when I do a refresh, only 3 out of the 4 items re-appear and I have to refresh even one more time. It is always links that disappear – headline items never disappear. Anyone else experienced this? It seems like this is a bug..?

Why disappear permissions of document folder?



I have problem with permissions of document folder. Laws disappear from time to time and I don´t know why it happen.

It is happening by folder, wich is divided to several subfolder. For example: folder1/folder2/folder3


folder1 is document library, where is set up, that users from group "reading" have permission for reading this folder.

folder2 inherit laws from folder1

folder3 - permissions for this folder are withdrawal from group "reading" and to this folder is added user with permission for reading and contribution.


Problem is that from time to time folder1 loses permissin for group "reading" and at the same time folder3 loses permission for user, who can contribute in folder3.

Users for the folder3 we add, this is not inherit from folder2. I cannot find why disappear permissions for users, who we add.

We use Sharepoint Services 3.0

Thank you for your help!

list of document library items' permissions


Hi All,

There is a library (SharePoint Server 2007)

There are many files in this library (with personal permissions).

QUESTION: How to obtain the list of these files with their permissions.


Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

jQuery: Styling DropDownList Alternating Items (Rows)

In the following example, I will show how you can style any asp:dropdownlist very easily.

The example demonstrates how you can change alternating row items background color, using the fadeTo() to add a nice touch in the dropdownlist. You can change alt rows with a couple lines.

Hide a repeater in ASP.NET C# if the DataSource contains no items?

I have an ASP.NET page that uses a repeater nested within another repeater to generate a listing of data. It's to the effect of the following:
In the (C#) code-behind I'm basically using LINQ to pull a listing of information from an XML document and bind that information to the first repeater.

Searching for the answer to this, it seems the method is to determine whether the data for the nested repeater is empty. If it is, then you set the visibility of the repeater to false.

Creating SharePoint items with CreateItemActivity

Instead of creating new list items from code in your workflow you can use CreateItemActivity. CreateItemActivity can be used for creating list items or files. Properties of interest for this activity are the following (most of them are self-explanatory):
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