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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

Can i change the webpart zone properties according to the sharepoint group?

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#
 

Hi 

Is it possible to change the webpartzone 'AllowLayoutchange' property for each sharepoint group.

when i am trying it is giving me error that i "cannot change the property when it is added to page"

Thanks,

Kshitij

 




View Complete Post


More Related Resource Links

Change webpart properties programmatically

  
I am attempting to modify the properties of another webpart when my webpart's button is clicked. The code compiles and runs, and stepping through it shows that the properties do change. However, they don't stay changed. This example attempts to toggle the visibility state, but other properties won't stay changed either. Any help is appreciated.     SPSecurity.RunWithElevatedPrivileges(delegate() { // get the site in this context using (SPSite SiteCollection = new SPSite(mySiteGuid)) { // get the web in this context SPWeb myWeb = SiteCollection.OpenWeb(myWebGuid); myWeb .AllowUnsafeUpdates = true; // Hide/display another webpart. Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager mgr = null; mgr = myWeb.GetLimitedWebPartManager( "default.aspx", System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared); foreach (System.Web.UI.WebControls.WebParts.WebPart myWebPart in mgr.WebParts) { // If this is the webpart we want to modify... if (myWebPart.Title == "Other Webpart Name") { // Toggle the visibility state. myWebPart.Visible = ! myWebPart.Visible; myWeb.Update(); break; } } } });

How to change a SharePoint list item Approval Status from Silverlight webpart

  

Hello, 

I'm facing the following problem:

I have an embedeed silverlight xap application inside a custom visual webpart, that access SharePoint data through Microsoft.SharePoint.Client.Silverlight classes, and I have to modify some fields from an item from a list that has "Require content approval" enabled. I update the item successfully, but its approval status is set to "Pending" afterwards. 

How can I re-approve the content programatically?

Some additional information:

  • SPList item has a moderation information field, but in Silverlight there is only "ListItem" which does not contain such field.
  • When I try to do "item["_moderationinformation"] = something", I receive a PropertyOrFieldNotInitializedException.
  • I can check for Item.ParentList.EnableModeration, but there is neither a field nor a method related to moderation on the item itself.
A possible solution would be to create and call a web service that approves the items, but I'd rather prefer to avoid hosting and calling a ws to cover this functionality.

Any help on this would be greatly appreciated.

Regards,

Ezequiel

 


Cannot view webpart in browser after adding Group Properties

  

Ihave a customized web part, this can be shown properly in browser.

however, in the dataview, if I added "Collapse group by default ", it looks fine in sharepoint designer. But, when it goes to browser. i got the following error:

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer. If the problem persists, contact your Web server administrator.

Please help ! ! !

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. 


Group Calendars in SharePoint 2010

  
One of the many requests I had in SharePoint 2007 was the ability to place SharePoint Calendars on top of each other like you can in Outlook 2007 saving you having to look at each and work out when the best time is for a meeting.

Rowlimit and PageFirstRow properties of listview as parameters to Listview Webpart

  

Hi ,

 I need to set the  Rowlimit  and PageFirstRow properties  of  listview  as  parameters to Listview Webpart

 And these parameters  will be passed from the custom provider webpart

http://server/sites/sitename/Lists/listname/AllItems.aspx?Paged=TRUE&p_ID=2&View=%7b300A7067%2dDA02%2d4A0E%2d816F%2d487EE042B4E2%7d&PageFirstRow=1

name of the list will be provided in custom webpart's toolpane.

and i need to save this as list content type of list defs

 

Please provide me the guidance on this.

 

 


Sharepoint list group by column data ,display in webcontrol like panel or label

  

I  have a sharepoint list[Managers] with groupby sector column. like below

1)Sector1
a)Dep1
b)Dep2

2)Sector2
a)Dep3

3)Sector3
a)Dep4
b)Dep4
c)Dep4

Each Sector group by column data i want to display in label or panel control.

How to do that ? how to write the logic?

REgards
mansoor

 


Regards, Mansoor

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..


the problem of silverlight sildeshow webpart in sharepoint

  

I added this silverlight sildeshow webpart (http://www.sharepointevolved.com/blog/Lists/Posts/Post.aspx?List=0586f39d%2Dc3f2%2D4f6c%2Db61f%2D2a33a3fcd95c&ID=27) which  customized a SharePoint data form web part with XML and XSLT to my sharepoint site which uses Active Directory authentication. it looks great (I published the webpage). but after I logout the system account, and login as my regular account with Read permission. the silverlight webpart can't show up. I check the permission of the Picture Library. there is no problem. I can see the pictures in the Picture Library with my regular account.
Anybody has the same problem? how to fix it?

Thanks
Sean


[Sharepoint 2007] How can i change the email of a sharepoint user ?

  
Hi all,


I have created a new sharepoint user.

1. First of all i have added a new user in active directory. However at that time i forgot to give an email address. Big mistake !

I cannot send mail from sharepoint workflow with the new user.

2. Therefore I updated the email addresd in active directory afterwards. But the change was not reflected in sharepoint.

I updated the mail in sharepoint adminsitrative user profile. But it did not make no difference in the user moss profile.

I followed the article in http://sharepointnotes.wordpress.com/2008/05/05/syncing-wss-and-moss-user-profile-properties-with-active-directory/

I did the following commands :

1. stsadm -o sync
2. stsadm -o sync -synctiming m:2
3. stsadm -o sync -deleteolddatabases 6
 stsadm -o sync

None of these commands updated the user properties mail for my new MOSS User.

I also rebooted the machine but my MOSS user email was not updated.

Also I used the tool at http://userprofilesync.codeplex.com/releases/view/13227
like the following :

tool>UserProfileSync.exe -url http://mysite -ssp http://mysite:37239/ssp/admin
I did not make any difference


What else can I try in order to update the email of my MOSS user ?

the problem silverlight sildeshow webpart in sharepoint

  

I added this silverlight sildeshow webpart (http://www.sharepointevolved.com/blog/Lists/Posts/Post.aspx?List=0586f39d%2Dc3f2%2D4f6c%2Db61f%2D2a33a3fcd95c&ID=27) which  customized a SharePoint data form web part with XML and XSLT to my sharepoint site which uses Active Directory authentication. it looks great (I published the webpage). but after I logout the system account, and login as my regular account with Read permission. the silverlight webpart can't show up. I check the permission of the Picture Library. there is no problem. I can see the pictures in the Picture Library with my regular account.
Anybody has the same problem? how to fix it?

Thanks
Sean


silverlight sildeshow webpart in sharepoint

  

I added this silverlight sildeshow webpart (http://www.sharepointevolved.com/blog/Lists/Posts/Post.aspx?List=0586f39d%2Dc3f2%2D4f6c%2Db61f%2D2a33a3fcd95c&ID=27) which  customized a SharePoint data form web part with XML and XSLT to my sharepoint site which uses Active Directory authentication. it looks great (I published the webpage). but after I logout the system account, and login as my regular account with Read permission. the silverlight webpart can't show up. I check the permission of the Picture Library. there is no problem. I can see the pictures in the Picture Library with my regular account.
Anybody has the same problem? how to fix it?

Thanks
Sean


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...

Overriding web.config in sharepoint webpart/using custom membership in web part

  
I'm developing a web part for MOSS 2007. The web part is being deployed to a web application which utilizes forms-based authentication, and role/membership providers to control users. The membership table has been edited to include addition user info (I am aware, that this isn't the best way to handle additional user, i.e. profiles etc., however, this is a requirement from another department). Since my web part needs to access this information, I was thinking of implementing a custom membership provider. So far I've followed: http://msdn.microsoft.com/en-us/library/6tc47t75.aspx and I've got my custom membership class, and a very stripped down membershipprovider-class. But how do I enable/use this membership provider in my web part? I've tried creating a simple web.config in the "WebPartCode" folder of my solution, next to my webpart code file, with connection string and membership provider tags. But I don't even really know how to build/reference/use the membership provider itself, so I don't know what else I need to do. I've built a C# class library project with the two classes (membershipprovider and custom membershipuser) and compiled it and installed it in the global assembly cache - is this correct? and how do I access them from here? Hope someone can help

Sharepoint editform.aspx will not allow to change

  
I wanted to updated my editform.aspx but was warned to make a backup first which I did so I saved editform.aspx as editform_original.aspx.   I edited editform.aspx just the way I want it, went to my sharepoint list and clicked my edit button and it now loads editform_original.aspx. how do I point this back to editfor.aspx? Okay so just to be clear I opened editform.aspx saved as editform_original.aspx in same folder Edited editform.aspx with my changes have tried to set default edit screen to editform.aspx from editform_orignal.aspx and it will not take

Sharepoint Crystal Report Webpart

  
Hi, I have deployed crystal report web part in live server sharepoint site.using .rpt file method. When i select the rpt file the system does not show the data and graph anything So kindly give me the idea to recover from this issue Regards S.Madeswaran    

How do I change the backlground and font color of a web part header - Sharepoint 2010

  
Hello,  Im verya mateur with Sharepoint so bare with me.   We are running Sharepoint 2010 and I am settingup a basic site for our company.  What I need to know is there a way to change the color of the web part header.   I have a calendar web part that displays a list of our holidays, and I was able to change the background color of the content as well as the font colors for the list of holidays,  but I cannot seem to change the background for the title box where it says Holidays and Events remains with a white background.   I would appreciate any help!   Thanks   Charlie   charlieprice@live.com
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