Skip to main content

Posts

SharePoint ModelDialog or Model Dialog or Popup position problem with longer page

Dear All If you are facing a problem that Sharepoint Model Dialog is at the top of the page while your SP page is longer then update the following CSS in your custom master CSS file .ms-dlgContent { margin: auto !important; position: fixed !important; } The problem will be sorted out Regards 3art Technology Experts http://www.3art.tech

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

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

SOLVED: “Open with explorer” disabled in IE11

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