Posts

Showing posts from February, 2015

Power-Shell scripts to install your package to your SharePoint Server.

To Add the Solution in SharePoint Add-SPSolution C:\YourFolder\SampleWebPart.wsp To Update your Solution in  SharePoint you will need this if you want to update the Webpart that is already installed Update-SPSolution –Identity SampleWebPart.wsp –LiteralPath C:\YourFolder\SampleWebPart.wsp –GACDeployment To Install the Solution to your  SharePoint Install-SPSolution -identity SampleWebPart.wsp -WebApplication http://yoursharepointserver -GACDeployment ---- If you want to install in all web application in one go Install-SPSolution -identity City_Wise_Requirements.wsp -AllWebApplications -GACDeployment Note: After install you need to populate the webpart by following steps  1) Go to site setting (Main site collection in case if you are in subsite)  2) Click on Under Web Design Gallery  > Web part 3) Click New Document 4) Select Web part and then click on populate button Now if something went horribly wrong or you just want to uninstall it you have to run this

How to get the current published item through sharepoint list in C#

Dear All Today i successfully get the current published item from the sharepoint list in my custom webpart here i s a code for it ********************** using System; using System.ComponentModel; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using Microsoft.SharePoint; using Microsoft.SharePoint.WebControls; using System.Text; using Microsoft.SharePoint.WebPartPages; using System.Globalization; using System.Threading; namespace customwebpart.slider {     [ToolboxItemAttribute(false)]     public partial class sliderUserControl : UserControl     {         /// <summary>         /// ListName         /// </summary>         [WebBrowsable(true)]         [WebDescription("HomeSliderListName")]         [WebDisplayName("HomeSlider List Title")]         //[ResourcesAttribute("WebUrl", "Custom", "WebUrlDescription")]         [Personalizab

Domain users not found in people picker SharePoint 2013

Dear All This is silly mistake but the solution is worth If you are facing an issue that SP2013 is not recognizing the Domain Server then follow the following step 1) Open IIS 2) Go the Sharepoint Application Pool 3) Click on Advance  Setting 4) Change identity from the local machine user to domain account user It will show all the domain user Regards Rashid Imran Bilgrami