.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

Per Location View Settings sometimes ignored

Posted By:      Posted Date: October 08, 2010    Points: 0   Category :SharePoint

Is this a bug or a feature?

1. Create a site with Tree View navigation enabled.

2. Create a document library.

3. Create two views: TopView and SubfolderView.  Make TopView the default view for the library.

4. Create a subfolder in the document library.

5. Using the "Configure Views for this location" setting on the subfolder, remove TopView from the list of available views.  SubfolderView should be the only available view for the subfolder.

6. My observations:

  • If you are in the root folder of the document library, and you use the Tree View to navigate into the subfolder, then the view default settings are correctly honored; you find yourself in the SubFolderView.
  • If you are in some other list, and you use the Tree View to navigate directly into the subfolder, then you incorrectly get TopView.
  • If you are in the root folder of the document library, looking at TopView, and you click on the folder title to navigate into the subfolder, then you incorrectly get TopView.

Configuration variations such as changing the view definitions to make the TopView available only for the top level or for certain content types do not work any better.

Do others experience the same problem?  Know of any workaround?  I would like to give our users a consistent experience

View Complete Post

More Related Resource Links

New / Upload / Actions / Settings / View menus on a document library are hidden

I have a Document library. On the View Page (All Documents) for the Document library, I do not see the menu bar with the "New / Upload / Actions / Settings / View" menus. It looks like one of the users with owner permissions did something to cause this behavior. No custom code exists on the page. I am not sure how this menu bar can be hidden. Can someone please clarify. I am a site collection administrator.

Calendar Day View - Location for all day events


How do you get the location to appear in the calendar for an all day event?  Right now, the only info that appears is the title, even though Location is the sub-heading chosen for the calendar columns in both week and day view (month view does not have a subheading choice).  I am unable to get any sub-headings to appear for all day events.

Thank you


How to make ASP.NET MVC View Insecure via location tag in Web.Config


I have the following authorization settings in my web.config:

      <deny users="?" />

This deny's all anonymous access to the application accept the login page. In addition to this I am using authorization within each controller action via a custom authorize attribute.

I have one additional action that I would like to expose publicly in addition to the login page. This action does not have the authorize attribute on it. I have tried to make this view (resetPassword view) public by using the location tag in the web.config file like so:

 <location path="Account/ResetPassword" allowOverride="false">
        <allow users="*" />

In the path attribute above I have tried both the view as well as the action path, but it doesnt allow public access to the action.

I have even tried to put this view in a separate folder within the shared folder and put a separate web.config file to make that folder public like so:

Designer does not remember my settings, for ex., I want to always load xaml into xaml (code) view, n


I am using VS 2010 Ultimate.  It is not remembering my setup when opening .xaml files.  It is very annonying.  I  am pretty sure VS remembers things like that.

I prefer to load my .xaml file to see the code only.  So I usually minimize the design tab.  However, I have to do this every time I open a .xaml file.

I am getting the feeling this setting is stored at the .sln level, which is even more annonying, it should be global setting for all VS sessions.

Any advice?

Per location view Problem



I try to use the "per location view" feature of SP2010.

I've got a problem with default view configuring. My hierarchy is :

Root Library -> View 1
   |> Folder 1 -> View 1
         |> Folder 2 -> View 2

When I go to Root Library or Folder 1, I've got the right view (View 1) but if I go to Folder 2, I still have the View 1 instead of default View 2.
It seems like folder link is based on parent folder url so it use http://spserver/Root Library/Forms/View1/

If anyone has an idea or solution,

Thank you.

Option to Group By: Content Type is missing from view settings.


In testing for migrating/upgrading our WSS 3.0 environment to SharePoint 2010, I have noticed that there is no longer an option to group list items by the Content Type column in view settings.  Is this by design, or a known issue that still needs to be fixed?  This is using the recent SharePoint 2010 Enterprise RTM.

Allow non-admin users view site and list settings (delegate control feature?).


I wonder if anyone knows of a way to allow regular users to view settings for sites, lists and document libraries (e.g. versioning, navigation, library template settings) without granting them permissions to change these settings?

Why do I need it? 

This is to allow 1st line support to gather some information and identify possible causes of user issues without having to escalate every call to users with admin or site owner permissions. 


A user logs a call saying he's uploaded a document but other users cannot see it. Now,

Truly Understanding View State

This article provides a detailed understanding of the ViewState.

GridView Parent Child View with JQuery Effects

I was just checked how to add some more cool effects to the GridView control using JQuery. In this post I will display parent-child data in the GridView control with some help of the wonderful JQuery library.

Let's first populate the GridView control.

Model View Controller (MVC) for ASP.NET

Model View Controller (MVC) architectures, immediately wonder how the MVC pattern can be applied in an ASP.NET world. This article will demonstrate how the MVC pattern can be applied to an ASP.NET web application and still maintain the basic Microsoft supplied architecture.

jQuery grid view plugin

jqGridView is new, client-rich, XML-based, ajax grid plugin for jQuery library. jqGridView provides professional solution for representing and editing tabular data on the web. Carefully designed, with powerful script API, this editable DHTML grid is easy configurable with XML, and shows convincing results working with large amounts of data. jqGridView allows easy implementation of nice looking(managed through css). jqGridView is not platform-depending plug-in, it can be used with different web -programming platforms like: ASP .NET/ASP, PHP, JAVA, CGI scripts etc. jqGridView has hight bowser compatibility.

jQuery grid view plugin

jqGridView is new, client-rich, XML-based, ajax grid plugin for jQuery library. jqGridView provides professional solution for representing and editing tabular data on the web. Carefully designed, with powerful script API, this editable DHTML grid is easy configurable with XML, and shows convincing results working with large amounts of data. jqGridView allows easy implementation of nice looking(managed through css

Convert English to Arabic number without changing any regional settings in .net

Well, most applications that I worked with was multilingual that supports English UI and Arabic UI.

And one of the major issue that we have faced is displaying Arabic numbers without the need of changing the regional settings of the PC.

So the code below will help you to display Arabic number without changing any regional settings.

view state vs request parameters


If  the view state is the data entered into the form fields then they are supposed to be available in the request parameters or request body. Then why would we need view state for?


Form view in ASP.NET


hi all...!
i have a database and i create a form with button edit,delete, New Registration..using Formview in asp.net..
everything was working good...

And i write SQL statement to get New ID number into dropdownlist/TextBox when i click button "New Registration".

i can get new(next) ID number after read database
it's also working good

Now i want change it to get ID which was deleted from table and replace the ID with new record...what i need is when i click "New Registration" i want get deleted "ID" first and then go to new record ID...

my code is here:-it working for get next ID after read database.

FROM Table1
AS boon WHERE PANG &gt;300000

partial view, 2 controllers



This is my first visit to the forums, I hope someone here can help me


I'm writing a small webapplication for creating repair tickets and adding comments, really basic

now I'm writing this in MVC2

So I have 2 controllers, 1 HomeController that does everything related to the tickets (listing tickets, creating new ones, editing) and 1 controller for the comments

the edit view for the homecontroller contains a partial view for /comment/create

so /home/edit/ticketnumber can edit the title and status of the ticket on the left side of the screen, the right side of the screen contains the partial view for adding comments

this is done like this:

Html.Renderaction("Create", "Comment");

but if I look at the generated html code when running the app, both save buttons go to /home/edit/ticketnumber

so the comment is never saved.


I hope this makes sense and that someone can help me solve this

validateRequest appears to be kicking in in MVC RC1 despite settings

After upgrading a project to the RC a System.Web.HttpRequestValidationException is thrown when posting a value containing HTML from a TextArea. I have checked that validateRequest=false in Views/web.config, and have set this in the application's root web.config. I have also created a fresh MVC project, created a simple view & controller and posted a simple html paragraph element with the same result. Call stack provided. [HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (html="

hello world

").] System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) +8718538 System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName) +111 System.Web.HttpRequest.get_Form() +129 System.Web.HttpRequestWrapper.get_Form() +11 System.Web.Mvc.ValueProviderDictionary.PopulateDictionary() +113 System.Web.Mvc.ValueProviderDictionary..ctor(ControllerContext controllerContext) +74 System.Web.Mvc.ControllerBase.get_ValueProvider() +31 System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor) +53 System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +109 System.W
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