How to redirect from one page to another in SharePoint Sandbox solutions (especially when they are deployed to SharePoint Online)?
Answer -
There are lots of ways to achieve this but the following one works almost everywhere for the sandbox solutions.
On a button click event (or accordingly) of your ".cs" file, just add following code:
string pageURL = "www.yourpageurl.com";var jscript = "<script type='text/javascript'
language='javascript'>window.location='" + pageURL +...
Tuesday, January 27, 2015
Thursday, January 22, 2015
Change 'Title' Column Display Name Using List Definition In SharePoint

Question: How to change "Title" column display name in default view of a list when creating list by list definition using Visual Studio in SharePoint?
Answer: In Schema.xml file of your list definition project, search for "Fields" tag (i.e. <Fields>) and just before the closing tag of this "Fields" tag (i.e. </Fields> ), put below line of code (also see attached image):
<Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="LinkTitle" DisplayName="First...
Wednesday, January 7, 2015
Cannot Connect To The SharePoint Site

Cannot Connect To The SharePoint Site
While creating a SharePoint solution in Visual Studio, if you get an error shown in a screenshot below when you validate your SharePoint site URL, just provide user with a "DB_Owner" access to the "WSS_Content", "WSS_Logging" and "SharePoint_Config" database. This will resolve the issue.
...
Subscribe to:
Posts (Atom)