Tag Info

New answers tagged

0

Check the scope of the Feature. It should be scoped to Site. Since, the project contains visual webpart, you need to specify webapplication paramter if deploying through PowerShell Add-spsolution -LiteralPath c:\WSPNAME.wsp install-spsolution -identity WSPNAME.wsp -gacdeployment -webapplication http://aissp2013


0

Deploy it using Powershell Install-SPSolution -Identity MySolution.wsp -local -GACDeployment or Install-SPSolution –Identity MySolution.wsp -GACDeployment


1

When you use Visual Studio to build your visual web part. In the Feature Design mode we you gave the scope of feature as Farm by mistake and when we try to deploy the solution you will get the error message. "Error occurred in deployment step 'Activate Features': Feature with Id XXXXXXX' is not installed in this farm, and cannot be added to this scope". ...


0

Well the problem was related to the Site Url setting of the project. As a result, the the Custom Tool SharePointWebPartCodeGenerator was never parsing the *.ascx file. Thereby, never creating a *.ascx.g.cs that contains all the designer components equivalent Literal declaration and reference. Once i updated the URL, forced a Run Custom Tool from the ...


0

I would suggest mapping an SP Style folder and creating a new css file within it. It'll be easier managing on the fly, easier to see if it is loaded with browser's dev tools and is considered best practice. Then add this to the top of your ASCX <link href="/_layouts/15/1033/STYLES/Custom_VWP/Custom_VWP.css" rel="stylesheet" /> ...


0

After much research and crawling through the internet I came across this article: http://blogs.msdn.com/b/uksharepoint/archive/2011/04/04/provisioning-web-parts-to-a-page.aspx There are many articles like this but in the beginning of the article it explains my issue quite succinctly: Embed references to the web parts directly in the mark-up of the aspx ...


0

I was able to get the values using SPGridView DataKey attribute. GridView Control <SharePoint:SPGridView ID="ShowNode" runat="server" AutoGenerateColumns="false" AllowSorting="true" ShowFooter="true" ShowHeader="true" DataSourceID="" DataKeyNames="Link,Type" OnRowDataBound="ShowNode_RowDataBound" OnSelectedIndexChanged="ShowNode_RowIndexChanged" ...


0

Here was my final implementation without using the JavaScript model to perform the evaluation if ( WebPartManager.DisplayMode == WebPartManager.BrowseDisplayMode ) { } else if (WebPartManager.DisplayMode == WebPartManager.DesignDisplayMode) { } I do this in my PageLoad, but theoretically you could put this control block anywhere where you need to ...



Top 50 recent answers are included