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


Top 5 Contributors of the Month
ASPEvil
david stephan
Santhakumar Munuswamy
Fauzul Azmi
Post New Web Links

Ribbon not updated when two ListViewWebParts exist on the page

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

We have two ListViewWebPart webparts created dynamically (i.e programatically ) on the default.aspx page on two separate manual activations of the features. Two different lists are also assigned to them programatically. These lists have different buttons on the document ribbon and different buttons are disabled for each list.

Following is how the webparts are created.

      SPFile file = currentWeb.GetFile("Default.aspx");
      SPLimitedWebPartManager mngr = file.GetLimitedWebPartManager(PersonalizationScope.Shared);


      list = file.ParentFolder.ParentWeb.Lists[ComplianceDocLib.DocumentLibName];
      ListViewWebPart lv = new ListViewWebPart();
      lv.TitleIconImageUrl = "_layouts/images/iQDocLib.png";
      lv.ListName = list.ID.ToString("B").ToUpper();
      lv.ViewGuid = list.Views["HomePage"].ID.ToString("B").ToUpper();
      mngr.AddWebPart(lv, "Left", 0);

When the user clicks on the item check box on the list view webpart the ribbon that is shown
belongs to one of th


View Complete Post


More Related Resource Links

Ribbon not updated when two listviewwebparts exist

  

We have two ListViewWebPart webparts created dynamically (i.e programatically ) on the default.aspx page on two separate manual activations of the features. Two different lists are also assigned to them programatically. These lists have different buttons on the document ribbon and different buttons are disabled for each list.

Following is how the webparts are created.

   SPFile file = currentWeb.GetFile("Default.aspx");
   SPLimitedWebPartManager mngr = file.GetLimitedWebPartManager(PersonalizationScope.Shared);


   list = file.ParentFolder.ParentWeb.Lists[ComplianceDocLib.DocumentLibName];
   ListViewWebPart lv = new ListViewWebPart();
   lv.TitleIconImageUrl = "_layouts/images/iQDocLib.png";
   lv.ListName = list.ID.ToString("B").ToUpper();
   lv.ViewGuid = list.Views["HomePage"].ID.ToString("B").ToUpper();
   mngr.AddWebPart(lv, "Left", 0);

When the user clicks on the item check box on the list view webpart the ribbon that is shown
belongs to one of the list and this does not chang

Showing Ribbon on master page: The page you selected contains a list that does not exist.

  

I am performing a content database upgrade of a SharePoint 2007 site collection to SharePoint 2010. I used the mount-SPContentDatabase with the –UpdateUserExperience switch. I set the site to use the v4.master page as the master page. If the ribbon is not displayed on the page, the page renders. However when I show the ribbon I get the following error:

 

Server Error in '/' Application.

 


List does not exist.

The page you selected contains a list that does not exist. It may have been deleted by another user.<nativehr>0x81020026</nativehr><nativestack></nativestack>

List does not exist The page you selected contains a list that does not exist. It may have been de

  
Hello All,   We are facing an error in our MOSS 2007 internet site.   We are unable to access the root site ,however all other site collections created using manged path under the root site are accessible.   The home page of the root site i.e http://servername/pages/default.aspx  navigates to custom error page , where as application pages like settings.aspx ,viewlsts.aspx throw below mentioned error   "List does not exist  The page you selected contains a list that does not exist.  It may have been deleted by another user" As a workaround , we tried restoring the rootsite from back up file (.dat) ,but we get the same error (mentioned above).   Content database is very much present and database server has good enough memory.   Any suggestions for this would be of great help.  

How to make Hidden Fields appear on every other page when there are other data regions exist on the

  
Dev Environment: Visual Studio 2008 Client reporting(.rdlc) I have a client report with one hidden field and one table. The data for the hidden field come from one dataset and the data for the table comes from another dataset. Since there is huge data on the report, the table data spans multiple pages. at the same time i want the hidden field to appear on every other page along with table. i'm using these hidden for report header purposes. As an alternative i have used hidden parameters instead of Hidden Fields. Are there any alternatives other than this ? -- Praveen

"List does not exist The page you selected contains a list that does not exist. It may have been del

  
Will you please help me to resolve the following error when I trying to add a new item or edit item in the exist list:- "List does not exist The page you selected contains a list that does not exist. It may have been deleted by another user"

How to upgrade master page to use new Ribbon

  
Hi, In WSS 3.0, I made a custom.master and made some very minimal customizations: different background colors, attached a custom.css, etc. No big layout changes. Just colors and logos and fonts. For all intents and purposes it looks almost like the default master page of 2007 but with my corporate colors, branding, and identity. We upgraded to 2010 and my admin kept me in the "previous version of the user interface." When I tried to "preview the new user interface" in Site Settings>"Title, Description, Navigation", my custom master was completely wiped out by the new v4.master. It did add the ribbon, etc, but I want my corporate identity too. So I went back to the "previous version of the user interface." Now my plan was to follow this article and remove old placeholders, and add the new ones so that I can use the server ribbon. I tried all that. I found that doing that added some duplicate placeholders, so I removed the old ones, saved, and the page looks the same as it did in WSS3.0: no ribbon appears at the top. It looks the same as if it was WSS 3.0.   Is what I'm doing possible? Or do I need to start with a v4.master, and add my pre-2010 cusomtizations into that file to take advantage of the new v4core.css, etc? Or do I need to attach the new v4core.css to the master in the 2010 site? This article made a lot of sense

"List does not exist The page you selected contains a list that does not exist. It may have been d

  

Hi all,

In Sharepoint 2010

When I trying to add new item or open an item in the list I see the following error message:

"List does not exist  The page you selected contains a list that does not exist.  It may have been deleted by another user"

Can anybody help me figure out what is causing this error?


Page Layout and Text Layout Buttons Disabled on Ribbon

  
I am trying to create a publish site in Sharepoint 2010, and I am using the Ribbon control.  Currently, I am having trouble adding and changing content on my site, due to both the Page Layout and Text Layout buttons being disabled.  I have been trying to figure out what security or feature needs to be active to get these enabled again.  Any help would be appreciated.

Checking existence of a record in sql database using IF EXIST and reporting outcome on asp page

  

Hi

I have a page that inserts a record to an sql database and I would like to do the following:

(i) Check if a record already exist before trying do an insert

(ii) If a record exist, the page should be able to inform/display a message in a textbox informing the user that the record already exist.

 

I have seen a number of post on the internet that suggest that one possible solution is to write a sproc and use the T-sql IF EXIST function. However, I have NOT seen a complete code showing (a) how this can be done (b) how to call the sproc from an asp page (c) and MORE IMPORTANTLY how to display a message informing a user that a record already exist i.e. when the record already exist in the database.

 

Please have anyone got a complete working code that can achieve this preferably in c#?

 

Thanks

cu202


Creating a ribbon flyoutanchor similar to the page layout flyout

  

Hi All,

I've asked this before and got no answer. I've simplified my code which may help.

The current code displays icons to the left and text to the right (similar to Page > Share & Track > Alert Me). I want it to display like Page > Page Actions > Page Layout (with the text below the icon and in 4 columns). I'm using the CMDUI.XML as a guide to no avail.

Below is my code. Any help is appreciated.

Thanks,
CFe

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

 

List does not exist / The page you selected contains a list that does not exist. It may have been de

  

This error pops up on all workspace sites; ie. Site Pages --> Add new page

List does not exist.

The page you selected contains a list that does not exist.  It may have been deleted by another user.

Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: 0a9233af-9c1e-4d27-91cb-b0a58b7f3419

Date and Time: 10/8/2010 1:20:06 PM


The name 'PopularApplicationSkins' does not exist in the current context for Ribbon.

  

Hi, when i want to set Office2007 style to my Ribbon, throw an exception and say:

The name 'PopularApplicationSkins' does not exist in the current context !

what should i do?

Thanks


Amin Mashayekhi

Create custom tab in ribbon similar to the Page tab

  

Hi,

I want to create a custom tab in the ribbon that is visible when the Page tab is visible. Is this possible?

 

Regards,
Martin


SSRS popup page not showing the updated data untill it is refreshed(javascript,asp.net)

  

i am having a report which shows report data ,once the report item is clicked ,a popup(.aspx) will open theni update the data and close the popup.

issue: when i close the popup i am landing on the parent page but, i have to refresh the page to see the update i did on the popup page.How to resolve this,

thanks in advance


Server error: is checked out or locked for editing by ... but page does not exist

  

I tried to rename a page in the source variation of a Publishing Site using Site Content and Structure tool, let's call it "newpage". This threw an HTTP 500 error. I then tried to rename it in SharePoint Designer. I got two message prompts, the first said:

"A file with the name Pages/newpage.aspx already exists. Do you want to replace this file?"

There is no file of that name in the Pages list in either the source or target variation. I said "Yes" and got the following error:

"Server error: The file <path>/newpage.aspx is checked out or locked for editing by ."

No user name was given in the message. I can successfully rename the page in the target variation to have the new name.

I also cannot create a new page in the source variation called newpage.aspx, I get an error saying that there is already a page of that name ... but there isn't. I have cleared the site and site collection recycle bins.


How to hide ribbon buttons in a publishing webpart page?

  

Hi,

I'm trying to hide some ribbon buttons from a publishing web part page(a page thats url ends with: /pages/default.aspx), and i just can't seem to do it.

I created a feature with custom actions to hide the buttons but it doesn't work for publishing web part pages.

Can someone give me a working example on how to hide the Make Homepage button from a webpartpage?

Here is the code i used that's currently not working, in 3 different formats, neither of them works for me:

 

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

"List Does not Exist, the page you selected contains a list that does not exist. It may have been de

  
Hello Folks,
One the User is getting "List Does not Exist, the page you selected contains a list tha does not exist. It may have been deleted by another user." Error while User open Subsite Directly.
This Subsite has a list displayed on home page.
I have checked user is added in to Site Member group which has Contribute Permission and List is inheriting this group.
any help will be appreciated.
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