Posts

Showing posts from 2017

Adding Items to List in By using Admin account or Any other domain account

Dear All,  Some time you want to add the item in the list which user doesn't have a permission, the below code will impersonate the user in sharepoint to add the code in the list by using domain account  using System; using System.Collections.Generic; using System.Linq; using System.Text; //SharePoint namespace using Microsoft.SharePoint.Client; namespace AddItemsToList { class Program { static void Main(string[] args) { string siteUrl = "http://sharepointserver.com"; ClientContext clientContext = new ClientContext(siteUrl); clientContext.Credentials = newSystem.Net.NetworkCredential(@"domain/userName", "password","domain.com"); Web site = clientContext.Web; //Getting List List list = site.Lists.GetByTitle("Students"); //Adding Items to List ListItemCreationInformation listItemCreationInformation = newListItemCreationInformation(); ListItem listItem = list.AddItem(listItemCreationInformation); li

Use Full Web Development Tool List

For Developing Charts https://www.amcharts.com For Chart Editor https://live.amcharts.com/new/ Downlaod from GITHUB https://github.com/amcharts/amcharts3 Regards 3art Technology Experts http://www.3art.tech

AsEnumerable Missing or reference not found

Dear All I have problem locating my AsEnumerable extension method in my DataTabe (System.Data). Thank god for this post by Angel (http://blogs.msdn.com/angelsb/archive/2007/02/23/does-not-contain-a-definition-for.aspx) I was able to find this method once i have added reference to the following assembly. C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll Try to do a dummy Build and you should be able to get it. Regards 3art Technology Experts http://www.3art.tech

Updatepanel or Enable Ajax in SharePoint webpart

Dear All It is really giving me a hard to get this techniques if you want to run the update panel in sharepoint 2013 webpart then you need to initialize the script manage by code   protected override void OnInit(EventArgs e)         {             base.OnInit(e);             InitializeControl();             // Register the ScriptManager             ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);             if (scriptManager == null)             {                 scriptManager = new ScriptManager();                 scriptManager.ID = "ScriptManager1";                 scriptManager.EnablePartialRendering = true;                 Controls.AddAt(0, scriptManager);             }         } In ascx page you need to add the following  <asp:UpdateProgress ID="UpdateProgress1" runat="server">     <ProgressTemplate>         <h1>Your progress value</h1>     </ProgressTemplate> </asp:U

SOLVED: “Open with explorer” disabled in IE11

Image
Dear All,  I have made a bootstrap customize masterpage. The "Open with Explorer" option is not enable once i enable my custom master page on the other hand its working perfect with the sharepoint default master page. I fixed it by replacing the following line: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Change the following with bootstrap // this is boot strap compatible content <meta content="IE=edge" http-equiv="X-UA-Compatible"> //this is sharepoint compatible content <SharePoint:IECompatibleMetaTag runat="server" /> Following other causes that create the same issue  1) Added the site to Compatibility View settings 2) Local service WebClient Must be started  I have enable this option with IE 11 64bit most of the places i found the people said it's only working with 32bit IE  I hope this article will sav
Image
Dear All Following are the steps for the After this setup if you got the error for the "Access denied by Business Data Connectivity error for anonymous users when accesing external list"  You need to follow the following steps    This is because the user  doesn't  have the permission to the external content type. How to resolve: Open  Central Administration . Click on  Manage service applications  which is available in the  Service Applications  section. Click on Business Conectivity service application. Select the external content type, click on  Set Permissions  in the ECB menu. Add the user and then click on Add. Give the permissions for the user and click on Ok. Now navigate to the external list you will be able to see the data in the list. After that if you face a problem with the “Login failed for user "NT AUTHORITY\ANONYMOUS LOGON" while browsing to external list.” To resolve it following script need be wri

Sharepoint Workflow 2013 Option not display under sharepoint designer

Image
Dear All, If you are facing a problem not to display sharepoint 2013 workflow option under sharepoint designer kindly follow the below video it will help you sort out the problem I hope it will save your time  Regards 3art Technology Experts http://www.3art.tech

Open and Close SharePoint Dialog Box or dlg and Refresh Parent Page

Dear All,  If you are looking for close the ISDGL=1 Sharepoint dialog box on button click on C# here is the code for it Add following script files in to ascx file for open popup! <Sharepoint:ScriptLink runat="server" Name="SP.UI.Dialog.js" Localizable="false"  ID="s4" LoadAfterUI="true"/> This script will set the properties of popup window <script>     function openPop_up(pageURL, title, dlgwidth, dlgHeight) {         var options = {               url: pageURL,               title: title,             allowMaximize: false,           showClose: true,           width: dlgwidth,         height: dlgHeight,         dialogReturnValueCallback: Function.createDelegate(null, function(result, returnValue) {               if (result == SP.UI.DialogResult.OK) {                   if (returnValue == null) {                       SP.UI.Notify.addNotification('Operation successful');                       SP.UI