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


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Web Part Properties issue

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :SharePoint
 

Hi there,

I've create a custom object for my web part. I can compile  the web part or web part editor without any issue.  However, when I click "Apply" or "Ok" on the Web Part Editor (this is where I've to update the CustomObject value, I have debugging it line by line there was NO error at all) But an error message raise on the top on the editor.

"Cannot save all of the property settings for this Web Part. An error has occurred."

 

Any idea what could cause this? or how should I debug this one? Thanks!

 

  [WebBrowsable( false ), WebDescription( "Custom Object" ), WebDisplayName( "Custom Object" ), Personalizable( PersonalizationScope.User )]
  public CustomObject ProjectCustomFieldsInfo {
   get;
   set;
  }

 


Joe


View Complete Post


More Related Resource Links

Web Part Versioning and Deployment (properties only)

  

Suppose I have a 3<sup>rd</sup> party Web Part (source code provided, with Web Part deployed as a Feature) that’s installed and used in several Sites within a Site Collection.  I want to make changes not to the source code (which would require updating the assembly and deploying the changes as an updated Feature/Solution Package), but to property values of the Web Part that exist.  Say the WP exists on 10 pages, and I want to change the WP’s Title property from “Amazing Vendor Web Part” to “My New Title”.

 

First, would this be considered an “out-of-band” patch?  Not that it matters terribly how to label this…

 

Second, would the ideal approach be to simply add code within a Feature Receiver in that Web Parts VS project (the Feat

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

Customizing Web Part Properties

  

 I am writing a web part for SharePoint. To define a custom property that will render as a dropdown list in tool pane For That I need the variable in a type of enum.But that dropdownlist has to be populated dynamically(i.e droplist items are supposed to the list&document lib names in the entire site collection),Which is not supported by Enum.I am extremely new to coding.any help is highly appreciated .

Thankz in advance.

Regards,

Sandeep.


Dataview Web Part - Caching issue

  
Hello, I would like to know if this is a bug or the intended behaviour of the dataview webpart when used on a calendar list. I created a calendar with a view that expands recurring appointments. I then used this view in a DVWP to show a rollup of events happening soon. My query was similar to this <Where> <DateRangesOverlap> <FieldRef Name="EventDate"/> <FieldRef Name="EndDate"/> <FieldRef Name="RecurrenceID"/> <Value Type="DateTime"> <Now/> </Value> </DateRangesOverlap> </Where> This allowed my web part to expand recurring appointments so that they were displayed correctly. My web part then worked correctly the first time the page was loaded, but showed incorrect data on subsequent page loads. I determined that when the page was refreshed, it was no longer expanding recurring appointments. I found later that by turning off data view caching in the webpart, this issue went away. My question then is, why does the web part use an different (and incorrect) query to cache its data. Why does it not use the query set out in the web part to cache the data that it returns the first time. Is this a bug in the DVWP or is it intended to work like this (and then why)? Thank you

RSS Viewer Web Part Bug or Strange Issue?

  
This started out as a simple proof of concept but may be a bug.  I have added 3 RSS Viewer web parts to a page with the following URLs http://feeds.feedburner.com/sharepointteamblog?format=xml http://msdn.microsoft.com/en-us/subscriptions/subscription-downloads.rss http://rss.news.yahoo.com/rss/yahoonewsroom and everything works perfectly / each part renders as expected. I then added each of these URLs to a links list and then added the links list web part to the page.  I selected one of the RSS Viewer parts, chose connections -> “Get Feed URL from” -> “Links List” and then chose URL as the connection field.  What is happening is that the SharePoint Team Blog link works great, the MSDN link throws a SecurityException and the Yahoo link does nothing (no error in the log and nothing displayed).  I tried this on two different servers on different network & ISPs both with no firewalls in the way.  This appears to be an issue with how the web part handles a connection compared to the straight web part property. Any thoughts or someone else verifying the issue on their server would be appreciated. Regards,-James

Data form web part issue with pagination

  
I have a data form web part which I put inside a user control. I have an issue with the default pagination. Clicking the previous button on the pagination causes a "Webpage is expired" error. I've tried copying the code from the next button but it doesn't work and I've also tried caching my pages still nothing. I read somewhere here that someone was able to implement the previous button pagination from code behind but he still hasn't replied to my question. Does anyone else know how to implement this from code behind? Really need help with this.

Data form web part issue with pagination

  
I have a data form web part which I put inside a user control. I have an issue with the default pagination. Clicking the previous button on the pagination causes a "Webpage is expired" error. I've tried copying the code from the next button but it doesn't work and I've also tried caching my pages still nothing. I read somewhere here that someone was able to implement the previous button pagination from code behind but he still hasn't replied to my question. Does anyone else know how to implement this from code behind? Really need help with this.

Issue with Picture Library Slideshow Web Part after export/import of site collection (SP2010)

  

I recently exported/imported an SP2010 site collection from Dev to Prod. The site collection had about 90 sites, which were all driven from a site template. Once the export/import had taken place, I created an additional 15 sites (in Prod), using the original site template that was created in the Dev environment. Everything seemed to be working just fine, but I found an issue with the Picture Library Slideshow Web Parts (PLSWP) on all the sites that were created in Prod. Basically, I have a Picture Library, and any pictures added to this library show up in the PLSWP. The original 80 site's PLSWP works fine, but the new 15 sites will not show the pictures through the PLSWP (the viewer just shows up blank). Here is the difference in the html output of the picture viewer:

 PLSWP from Dev:

 <a target="_blank" href="http://forefronttest/realestate/RE/West/HOU/3560/Project%20Pictures/test.jpg" id="MSOPictureLibrarySlideshowWebPart_ctl00_m_g_28b22a62_6d8

Issue - A significant part of sql server memory has been paged out.

  

Hello Experts,

I am running a huge SSRS 2008 report and it gets rendered sometimes and sometimes it gives me an error,

"The report execution has expired or cannot be found. (rsExecutionNotFound)”.

When I see SQL Server log after this issue comes I see following message there;

"A significant part of sql server memory has been paged out. This may result in performance degradation. Duration: 300 seconds. Working set(KB): 97672, memory utilization 42%"

Please help me to know what is the issue and how to fix it.

Regards.


How does web part stores its properties when a piece of code is executed in it?

  

Greetings

I am trying to program my first webpart based on this:

http://www.codeproject.com/KB/sharepoint/SharepointContactForm.aspx

This webpart must show people who have birthdays on particular day of the month. There should be a button for each month (and one for "whole year) and button for each day (and one for "whole month") and so user can choose to show only those with birthdays in say, april 23, or whole june...

I did it this way:

Following the tutorial, i create all my controls inside the CreateChildControls() and i store references to them as properties of the webpart class. Also the class (public class BirthdayFullScreenWebPart) has properties (int chosen_month) and (int chosen_day).

Then i have have onclick for buttons that changes the chosen month and/or day web part property, based on which button was clicked.

Then i have a function "UpdateUserList" that ouptuts list of users into the webpart's table control, based on the chosen month and day. this function is called inside createchidlcontrols after all of them are created, and inside onclicks when the month/day is changed.

 

What i got is that the values of the variables were behaving really odd. 

In my mind, it

Dimension properties issue

  

Hi

IsAggregatable and AttibuteHierarchyVisible set both to false will prevent from browsing a given attribute if it is used within a hierarchy. The question is what is the difference between the both properties

Thank you 


The complexity resides in the simplicity

Code in Content Editoe Web Part - Issue

  

I added the following code in content editor web part.

<!-- Code to hide Tab Page Help Link -->

<script type="text/javascript">

 $(document).ready(function() {

  $('#TabPageHelp').hide();

 });

</script>



<!-- Code to add Tabs -->

<div id="tabs">

  <ul class="tabNavigation ms-WPBody">

   <li><a href="#tab-1" class="selected ms-topnavselected"><span>TAB 1</span></a></li>

   <li><a href="#tab-2" ><span>TAB 2</span></a></li>

   <li><a href="#tab-3" ><span>TAB 3</span></a></li>

   <li><a href="#tab-4" ><span>TAB 4</span></a></li>

  </ul>

  <div style="clear: both"></div>

</div>

After few edits to the page, when I try to edit the code in the content editor web part, the code appeared as follows. Not sure why these jquery ids got appended everywhere. Any suggestion as a solution for this issue ?

<!-- Code to hide Tab Page Help Link --><script type="text/javascript">



 $(document).ready(function() {

  $('#TabPageHelp').hide();

 });</script>



<!-- Code to add Tabs --><div id="tabs"><ul cla

SummaryLinkWebPart : Access Denied saving Web Part properties after migration to Moss 2010

  

Hi everyone,

i got the error below when i access pages containing a SummaryLinkWebPart. The error occured only with user having non-administrative privilege.

The curious thing is that after an administrator access one of this pages, it starts to work for non-administrative users too.

The site collections containing these pages has been migrated from Moss 2007 to Moss 2010.

I'd like to find a better solution than navigate through all my pages with site collection administrator account.

Any suggestion would be very appreciate

Access Denied saving Web Part properties: either the Web Part is embedded directly in the page, or you do not have sufficient permissions to save properties


Custom web part properties are not saved in SharePoint 2010 visual web part

  

I have created my first visual web part in SP2010.  In 2007 version I didn't use user controls so all of my code was in a single file for the most part.  Now I've separated out the code.  Everything works great and I like this a lot better (more like traditional ASP.NET development) with one exception.  In my bootstrap .cs file (I call it that because it does nothing but load the user control file) I put all of my custom web part properties.  Then in my web part code-behind I reference them thru an instance of the containing class.  I must have something incorrectly configured because none of the changes to the properties at runtime are getting updated in the code.  Here's a filtered view of how I have it wired together:

Sample property in the top level .cs file:

private string m_ImagePath = "sites/myapp/images1/branded_image.png";
[Personalizable(PersonalizationScope.Shared),
   WebBrowsable(true),
   WebDisplayName("Relative path to header image"),
   WebDescription("Relative path to header image"),
   Category(

SharePoint 2010 Security (Prompts for Login) Issue with SSRS report with Out of Box Web Part

  

Hi All,

I have a SSRS Customized Report (.RDL). I have a web part with association on one of the report. When I try visit the page I am prompted for credenatial.

My Data Source Properties are as per below

Use this user and Password

  user name: domain\myadminuser

  password:****

Selected: use as win auth

Selected: Impersonate

 

How Can I get rid of prompt?

 

 

 

 


Pathik

SharePoint 2010 Security (Prompts for Login) Issue with SSRS report with Out of Box Web Part

  

Hi All,

I have a SSRS Customized Report (.RDL). I have a web part with association on one of the report. When I try visit the page I am prompted for credenatial.

My Data Source Properties are as per below

Use this user and Password

  user name: domain\myadminuser

  password:****

Selected: use as win auth

Selected: Impersonate

 

How Can I get rid of prompt?

 

 

 

 


Pathik

Custom Properties in Advanced Search Web Part - a bug??

  

Hi,

we are trying to configure the advanced search web part and add some custom properties. Those properties are of type managed metadata.

We saw the following sample:

http://blogen.siderys.com/2009/02/customizing-advanced-search-webpart.html

When try to use the web part, for example by add the property "product" and then search "when [product]="valueA",

we get not only results where the item has a property "product=valueA",

but also any item where in its body (full text) there is "valueA".

This behavior doesn't occur when searching non-custom property (for example "author=keren").

Is that a bug or are we missing something in the customization?

thanks a lot!

keren

 


keren tsur
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