Hot answers tagged

4

Your webpart is behaving like this because your are not handling postbacks correctly. Wrap all code in the Page_Load method with the following if(!Page.IsPostBack){ // Original code here } Some info about PostBack here: http://net-informations.com/faq/asp/ispostback.htm Or, just before your new databinding of the grid do this GridView1.DataSource = ...


3

It's for SharePoint 2010 Please follow the below steps: Go to root level In Site Collection >> Site Actions >> Site Settings >> Site Collection Administration section >> Site collection features There is one feature named SharePoint Server Publishing Infrastructure >> Click 'Activate' button Then go to subsite Site Actions >> Site Settings >> Look ...


3

If you have a high enough permisson level you can select the document, go over the ribbon to files and click "Discard Check Out". (Picture from my SharePoint 2013 on-prem Environment)


3

I believe there is no error in creating Web Application. Based on this approach I am trying to help. You need to create any Site Collection into it, Web Application cannot be opened directly. You can create a root level Site Collection. As you are new to SharePoint 2013 you can go through Create a Web Application and Site Collection in SharePoint 2013 Let ...


2

Brief: Document Libraries and List are two different things. Both holds different content type. If you Allow Management of Content Types via List Settings > Advanced Settings, you will observe the content type that are available for document library are not available for a List like Custom List and vice-versa. Solution: But to address your requirement you ...


2

The NewDocSet.aspx Page If you look at the URL of this page you'll see it looks something like http://site/_layouts/15/NewDocSet.aspx You can see that NewDocSet.aspx lives in the LAYOUTS folder of SharePoint's "hive". This is a term that just refers to SharePoint's installation location on the server. The hive on the server will be at C:\Program Files\...


2

To go more precise I would like to code it in following manner. if (Request.QueryString.Count > 0) { string urlSource = Request.QueryString["Source"]; if (!String.IsNullOrEmpty(urlSource)) { int pos = urlSource.LastIndexOf(@"/"); String newUrl = urlSource.Substring(0, pos + 1) + "/AllItems.aspx"; SPUtility.Redirect(...


2

If I understood you correctly, then following is your requirement. Checking whether Source exists in query string or not If it exists, then redirect to that URL Example string source = Request.QueryString["Source"]; if (source != "") { SPUtility.Redirect(source, SPRedirectFlags.Default, HttpContext.Current); }


2

Please use below query to compare birthday with current date. SPQuery = new SPQuery(); query.Query = "<Where><Eq><FieldRef Name='Ditlindja' /><Value Type='DateTime'><Today /></Value></Eq></Where>"; By using variable DateTime date = DateTime.Now; SPQuery = new SPQuery(); query.Query = "<Where&...


2

it is due to dll version, check the version compatability,if the version mismatch it will not compile


2

It sounds like you need to be able to show your users a listing of all the tasks they have open, from a number of SharePoint lists. Use a Content Search Web Part for this. It enables you to grab all tasks from all lists in your environment and show them in a single web part. It will perform much better than your current approach. It also scales better (i.e,...


2

Navigate to the Master Page gallery of your site. As in SharePoint 2013 by default, for each Page Layout, two files – .aspx and html are Created (Like below for your reference). So you need to find out the proper files & delete them both.


2

"Parent Content type From" should be Publishing Content Type. And then select Page. This article may give you more info:- http://blog.navantis.com/create-a-custom-page-layout-in-sharepoint-2013/


2

You have to go to Site settings in your team site you have created. Goto site settings >> under look and feel >> click on site theme >>inherit theme from parent site. find the screen shot below


2

Reason is that your site is on HTTPS but you are loading jQuery from HTTP. That causes this error as this is mixed content and potentially unsafe. Change the link to jQuery to use HTTPS instead and the error will disappear.


2

Change your CreateNewRow function with below code. public partial class OrganizationChartUserControl : UserControl { //Get the List name to fetch the data from string listName = "OrgChart_Demo"; int iRowCounter = 0; string sAllNewRows = string.Empty; protected void Page_Load(object sender, EventArgs e) { //Fetch the data (...


1

Get in touch with the Site Collection Administrator and ask them to set the permissions of the page/list/library to inherit from the parent site.


1

There is one built in: SharePoint 2010 > Edit > Insert > Web Part > Content Rollup > Table of Contents. Table of Contents webpart is used to show Sub Sites, Library, Lists, Discussions, etc... May be it can solve your problem. UPDATED If you want to use webparts than below are the best solutions available. How to create a SharePoint visual site map ...


1

Add your site in the trusted site zone in IE. Check which version of Microsoft Office is installed in your machine and compare the same with the machines where it is working. If possible run a office repair. Also please provide the file name which you are trying to open. Does it contain any special character like + - etc.


1

I finally found the answer! adding these two lines to the top of my script worked. $w = Get-SPWebApplication -Identity https://mysharepoint.org $w.GrantAccessToProcessIdentity("domain\my_username") Full script: $s = New-PSSession -ComputerName mysharepoint.org Invoke-Command -Session $s { Add-PSSnapin "Microsoft.SharePoint.PowerShell" $w = Get-...


1

Out of the box this is not possible. If you are open to custom development then follow below steps Hide existing download button using custom action Hide context menu option to download file using custom action Create new ribbon button. Now you will have complete control over the click event.


1

User Profile Service and Managed Metadata Service are not available in SharePoint Foundation. You will need to upgrade to SharePoint Server.


1

Here are some steps to create the calendar: Create a calendar app Modify the view Update the filter to show something like the following Basically, the first filter is to show only events created by you (logged in user) and the second filter to show any event that is categorized as Sick Leave and third filter is to show events that is categorized as ...


1

Choice field maximum value : 255 & size of column: 30 bytes Choice (multiple selection) field maximum value: 350 & size of column: 22 bytes Reference: Software boundaries and limits for SharePoint 2013



Only top voted, non community-wiki answers of a minimum length are eligible