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


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

Listview Webpart "rootFolder" private property issue in sharepoint 2010

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

We have used listview webpart to display document library.

The ListViewWebPart contains a private variable called 'rootFolder' that contains the current folder the webpart is displaying.

Below code snippet is used to obtain the value of the private variable contained within the ListViewWebPart.

private static object GetPrivateFieldValue(object obj, string fieldName)

{

    FieldInfo fi = obj.GetType().GetField(fieldName,

                            System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);

 

    return fi.GetValue(obj);

}

 

However, This is


View Complete Post


More Related Resource Links

Sharepoint 2010 w/ Webapps, Excel Services Webpart display issue.

  

I have Sharepoint 2010 installed with WebApps 2010, and can use it to edit documents in IE without any problems at all.  Word and Excel work just fine.

But on MOSS 2007, I could have it display the Excel page as a webpart, that you can click on, and open it anyways.   But no matter what I try in 2010, all I get is the Webpart heading has a link to the file that works, but the contents always reads:

To display a workbook in this Web Part, you must first select the workbook.

To select a workbook, open the tool pane, and then edit the Workbook property.
Click here to open the tool pane.

 

How can I fix the preview in the webpart?

 

Thanks!

-Mark


SharePoint 2010 Installation Issue - The value for the property 'storeName' is not valid

  

Hi,

I'm trying to install SharePoint-2010 enterprise on a single server with Server Farm->Complete option. The SharePoint-2010 production got installed successfully but when I run the Configuration Wizard it throws the following error:

System.Configuration.ConfigurationErrorsException: The value for the property 'storeName' is not valid. The error is: Could not load file or assembly 'SMDiagnostics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebServices\Root\web.config line 7).

I had a working copy of SharePoint 2010 enterprise installed before, I uninstalled because of some other issue. Now when I try to re-install I'm getting above error what could be the issue here?

The details error in PCDiagonostics file:

System.Configuration.ConfigurationErrorsException: The value for the property 'storeName' is not valid. The error is: Could not load file or assembly 'SMDiagnostics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebServices\Root\web.config line 7)
  

How do I remove group headers in a listview webpart in Sharepoint 2010?

  

How do I remove group headers in a listview webpart in Sharepoint 2010? 

Really hoping someone can help. 


Outlook 2010 / Sharepoint authenthication issue

  

Hi all,

I'm using Outlook 2010 on Windows 7 64bit.

My company uses a hosted Sharepoint server (I guess it's Sharepoint 2010). There's a team calendar, which I would like to connect to my Outlook 2010. Linking it to Outlook works fine until it tries to update the calendar with the Sharepoint server. I shows the following error:


Error (0x80070005) when running the task "SharePoint": "You are not authorized to view the SharePoint list (team calendar). Contact the administrator of SharePoint site. HTTP 401."

So this tells me, I'm not authorized to connect - which is quite clear because Outlook never asked my for any username or password.

Funny thing is when I try to add an internet calendar (Right mouse click on calendars, Add calendar, Internet calendar) and use the url of the sharepoint list, it asks me for username and password, but then fails to add the calendar, as it isn't a webcal (which is OK).

BUT: As Outlook at this moment has the username and password, the exisiting Sharepoint calendar synchronizes correctly. This works until Outlook is being restarted.

Does anyone have an idea why I'm not asked for any authentication? Maybe there's some setting I haven't found yet? It works with trying to add the webcal any time when I start Outlook, but t

Unable to search Custom User Property Created in User Profiles in SharePoint 2010

  

Hi ,

I have created a custom user property,and created metadata property and added mapping to it, still i m not able to Search in People,Please advise


Sharepoint 2010 power tools visual sandboxed web part issue!!

  

Hi guys

I tried to use a simple hello world web part with with sharepoint power tools the solution is added ok but when I try to add the web part to the page I get this error "Unable to load assembly group. The user assembly group provider...." Any thoughts

Regards

Rodolfo

 

 


rsoares

how do i create a webpart for sharepoint 2010 that allows users to create their own subsite..

  

hi!

how do i create a webpart for sharepoint 2010 that allows users to create their own subsite..

for e.g..

i create a webpage in vs 2010 which allows users to create their account by specifying username and password..and make it a webpart and after that for that user a subsite should be created under sharepoint 2010 top level site.....how could i achieve that..


PowerShell script to add/edit ContentEditor webpart on SharePoint 2010

  
Hi all, I'm new to PowerShell scripting with SharePoint. Following are the requirements that were given to me. Can any one direct me in the right direction interms of writing the script and how to save and execute the script? I am aware of Cmdlets. 1. Cycle through all sites in site collection 2. For each site, retrieve all document libraries 3. Look for specific CMV document library name (ie value communication, key business drivers, etc)          o add content editor web part if doesn't exist          o add/update appropriate description based on the document library name Thanks in advance...

Creating Custom ASP.NET Control for use on a SharePoint 2010 OOTB WebPart

  
I am currently trying to develop a custom asp.net control that can be deployed to SharePoint 2010 and then included on something like a New item form. I have been able to build the control as part of a webpart but it needs to be done as a stand alone control that can be used on various webparts including the out of the box webparts like the WebPartPages:DataFormWebPart. Are there any good examples of building a custom control, deploying it to SharePoint and then using SharePoint designer to add that control to an existing web part?

SharePoint 2010 Refinement Panel - Show more link issue

  
Hi,  I have deployed a Refinement Panel on my search result page. And I have modified the Filter Category Definition to get some Managed Metadata columns. Below are the xml changes: <?xml version="1.0" encoding="utf-8" ?> <FilterCategories>   <Category    Title="Category"    Description="Managed metadata of the documents"    Type="Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator"    MetadataThreshold="3"    NumberOfFiltersToDisplay="3"    MaxNumberOfFilters="20"    ShowMoreLink="True"    MappedProperty="ows_MetadataFacetInfo"    MoreLinkText="show more"    LessLinkText="show fewer" />   <Category    Title="Modified Date"    Description="When the item was last updated"    Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator"    MetadataThreshold="5"    NumberOfFiltersToDisplay="6"    MaxNumberOfFilters="0"    SortBy="Custom"    ShowMoreLink="

Cannot access parent site list from subsite in XSLt List View webpart in sharepoint designer 2010

  
Hi    We are using sharepoint 2010  for internet facing sites for our big client in healthcare domain .  I am using XSLT list view webpart in sharepoint designer 2010 for retrieving contents from sharepoint list & displaying it by using XSLT List view webpart in publishing sites. We are having lot of list in rootsite collection, If i am creating pages by using XSLt list view webpart in root site collection I can access the list,View and Display in Pages by XSLT List view webpart. Now the requirement is i have to access the list in roosite collection(parent site) from subsites.  In Sharepoint designer 2010, while i am inserting XSLT list view webpart, i could not find datasource to access the list that exist in rootsite collection(Parent site) from subsite. Below is the the code i am using for accessing the list& view from parent site & creating the pages in parent site by using xslt list view webpart,now i wants to access parent site list from subsite by using XSLT list view webpat in subsite pages.  Pls let me know what i have to change in the code level <WebPartPages:XsltListViewWebPart runat="server" Description="The list for the conditions details" ListDisplayName="" PartOrder="2" Default="FALSE" HelpLink="" AllowRemove="True" IsVisible="True" All

How to debug silverlight webpart in sharepoint 2010.?

  
Can i debug the zap in sharepoint.?

Cannot access parent site list from subsite in XSLt List View webpart in sharepoint designer 2010

  
Hi    We are using sharepoint 2010  for internet facing sites for our big client in healthcare domain .  I am using XSLT list view webpart in sharepoint designer 2010 for retrieving contents from sharepoint list & displaying it by using XSLT List view webpart in publishing sites. We are having lot of list in rootsite collection, If i am creating pages by using XSLt list view webpart in root site collection I can access the list,View and Display in Pages by XSLT List view webpart. Now the requirement is i have to access the list in roosite collection(parent site) from subsites.  In Sharepoint designer 2010, while i am inserting XSLT list view webpart, i could not find datasource to access the list that exist in rootsite collection(Parent site) from subsite. Below is the the code i am using for accessing the list& view from parent site & creating the pages in parent site by using xslt list view webpart,now i wants to access parent site list from subsite by using XSLT list view webpat in subsite pages.  Pls let me know what i have to change in the code level <WebPartPages:XsltListViewWebPart runat="server" Description="The list for the conditions details" ListDisplayName="" PartOrder="2" Default="FALSE" HelpLink="" AllowRemove="True" IsVisible="True" All

SharePoint 2010 - "My Inbox"(OWA) webpart not working with Exchange 2010

  
Hi, I'm trying to setup the webpart "My Inbox" (OWA) in SharePoint 2010. It works when connecting to OWA running exchange 2007, but failes with error 400 not found when connecting to OWA running Exchange 2010. The error appears after logging in.  I'm using this url: https://<exchangeserver>/owa I assume that this should be supported by Exchange 2010, but it seems to fail using this parameter /?cmd=contents. Any suggestions?   Best regards, Petter

SharePoint 2010 Calendar Webpart not showing overlays

  
I have made 4 overlays on one calendar and I figured I could add that calendar webpart to the homepage and it would show all the overlays, but it isn't doing that.  Is there a way to show all the overlay calendars in the calendar webpart? Thanks!

rdl Upload issue on SharePoint 2010

  
Hi all, I am deploying SSRS RDL files, Report Data Sources .rsds files on Sharepoint 2010 site using ReportService2006 Class available. I am doing the following steps; 1) Upload the file on Sharepoint using Filsteam Object. 2) Attached the Report Data Source to the RDL file uploaded. In this Step i first call _reportService2006.GetItemDataSources(rdlFileFullUrl) in case rdl is already uploaded and i get the error below; The item 'http://servername/Reporting/Report1.rdl' cannot be found. ---> Microsoft.ReportingServices.Diagnostics. Utilities.ItemNotFoundException: The item 'http://servername/Reporting/Report1.rdl' cannot be found. *** Report Deployment Failed. *** I checked the Sharepoint site to check the file is uploaded or not and file is uploaded correctly in the first step. Any suggestions, ideas will be helpful. Thanks, AmitAmit

Cannot Login with Forms Based Authentication to SharePoint 2010 - Issue with the SecurityTokenServic

  
Please be advised I have followed the steps on http://donalconlon.wordpress.com/2010/02/23/configuring-forms-base-authentication-for-sharepoint-2010-using-iis7/. I have tried to fix the following issue for a week using different farms and SharePoint 2010 installations, however I am getting the following error when trying to authenticate using Forms Based into a Claims site: Cannot get Membership Provider with name FBARoleProvider The membership provider for this process was not properly configured. You must configure the membership provider in the .config file for every SharePoint process. 1. I am certain the membership provider is configured in the SecurityTokenServiceApplication webservice as I can manage users and roles in IIS7 using the SecurityTokenServiceApplication website. 2. I am certain that membership provider is configured in the both the Claims Web Application and Central Admin as I can manage users and roles in IIS7 using their websites. 3. I know the issue is the SecurityTokenServiceApplication service as I had to set <serviceDebug includeExceptionDetailInFaults="true" /> to get the error above. 4. I can log into the Claims Based Application using windows authentication, however I am unable to see the users on the people picker despite that I can see them from the application's site on IIS
Categories: 
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