Tag Info

Hot answers tagged

5

Here is a way to do it in sharepoint 2013 in visual studio 2012 1)Create a empty sharepoint 13 solution Farm solution . 2) Add a sharepoin 13 project into it . 3)Add a mapped foder "Resources" to the project . 4)Now you gonna add three resources one for english "testMutliLing.en-US.resx" and one for german "testMutliLing.de-DE.resx" and one default ...


5

In general, you should avoid directly connecting to PRODUCTION for any sort of development or debugging. Consider bringing the list to your development environment. You can use import/export or consider saving list as template and install the template in Dev environment. How should you develop, debug and deploy sharepoint solutions? The serious ...


3

You can create a quick and dirty copy of the list from the production server by creating a list template from the list settings screen. When you create the list template, you will be given the option to include the content as well. Make sure that is checked. Download the file from the list template gallery in production, then upload the file to the list ...


2

This may be unrelated, but did you put a proper URL in your project's Site URL field, and can you properly deploy and activate an empty solution from VS? I find that the designer files are not generated properly if my site URL is faulty (VS can't connect to it) or if I lack the permissions to deploy and activate a solution from within Visual Studio.


2

try once using ClientScript.RegisterStartupScript as below : Page.ClientScript.RegisterStartupScript(this.GetType(), "nima", "alert('this is nima');", true);


2

You can create a single global resources file and deploy it to: {WebApplicationRoot}\App_GlobalResources\ This post shows you more on how to do it: http://blogbaris.blogspot.co.uk/2012/07/localization-with-sharepoint-2010-and.html The post is based on SP2010 but works just as well for SP2013


2

a- Add reference to "Microsoft.SharePoint.Taxonomy" assembly b- You need to register following Assembly in your Web Part <%@ Register TagPrefix="Taxonomy" Namespace="Microsoft.SharePoint.Taxonomy" Assembly="Microsoft.SharePoint.Taxonomy, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> c- You can use the control as following ...


2

It depends on what you want to do with the data, I'd say. In general, I would recommend the custom list approach, especially if the purpose of the form is to collect data and use it later. Recently, I built a custom 'poll' web part that did just this - I had a PollResponses list that stored the choice the user submitted through an AJAX request, and then I ...


2

First of all, you have an update panel. With that you have a few options. You could wire up a server side event to your button and hide the div on button click. The button click would cause an Async Postback which would just update the content inside of your update panel. One issue with your code is you are using normal html elements. To make your ...


2

According to this article Sandboxed Solutions support both custom actions as well as visual web parts. The following are not supported. Application Pages Custom Action Group Farm-scoped features HideCustomAction element Web Application-scoped features Workflows with code


1

already answered here: Activate a feature in feature installed issue and why: The FeatureInstalled method is called when the WSP is loaded into the Farm and the Feature files are copied into the 12 hive. This is done in Central Administration or via the command line (Powershell or STSADM). Because of this, there is no website Context to ...


1

Your validation controls (and your button) should specify a validation group. http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.basevalidator.validationgroup%28v=vs.110%29.aspx


1

Well, you can still register scripts in a Web Part through the ScriptLink control: <Sharepoint:ScriptLink ID="ctlScriptLink" runat="server" Name="file.js"></Sharepoint:ScriptLink> You can also just embed the JS in a script tag in your web part for the time being to test if the code works (or use a content editor web part on the page). ...


1

This should work. $('#Hide').on('click',function(e){$('#div000').hide(); }); $('#Show').on('click',function(e){$('#div000').show(); }); Add this inside the page load event.


1

There are certain recommended hardware given by Microsoft. Depending on the traffic you get to your SharePoint server you may need to scale your hardware. Writing to a custom list is the general and the safest method considering the set of operations supported by lists. If the server side object model is slowing you down, you can use the Javascript client ...


1

Separating the recipient addresses by commas is acceptable: http://social.technet.microsoft.com/Forums/office/en-US/e68c8f84-cd95-4d9f-bcdf-2609b9cdf315/sending-one-email-to-multiple-recipients-only-one-gets-the-email?forum=sharepointgenerallegacy You may want to try the same troubleshooting steps as shown in the accepted answer: The string format of ...


1

You cannot read directly from the webpart. But you can however write the values out in the control. Controls.Add(new LiteralControl(String.Format("<script type='javascript'>var customWebPartProperty1 = '{0}';</script>", myWebPart.CustomProperty1))); You can also write them to hidden fields in the webpart instead if that makes it easier.


1

Make a standard web link in the format mailto:user@domain.com


1

After dtRow["Name"] = user.Name; dtRow["Email"] = user.Email; Write dtRow.update(); Well, speaking more broadly, whenever you make a change to a list item, make sure you cal the update method to actually make the changes to the list item.


1

You can try the following code snippet: using (SPSite site = new SPSite(args[0])) foreach(SPWeb web in site.AllWebs) { //SPUserCollection allAdmins = web.AssociatedOwnerGroup; SPGroup ownerGroup = web.AssociatedOwnerGroup; if (ownerGroup != null) ...


1

Listfielditerator control renders each field in a list item with an appropriate control. A single line text field will be rendered as a text box while a lookup field will be rendered as combo box. This control resides in the Microsoft.SharePoint.WebControls namespace of the Microsoft.SharePoint.dll. You can use this control in a custom application page or ...


1

Here is also one another way to solve this. As the taxonomy picker page belongs to _layouts, by default, it is not available to the anonymous users. Hence, we should set the property of the page AllowAnonymousAccess to true. Go to the _layouts folder and find the WebTaggingDialog.aspx and place the below code. <script runat="server" ...


1

We can not call webservice in sand box solution(It's does not support).The reason behind of this sand box solution support only full trust code.One or more assemblies referenced by the XmlSerializer cannot be called from partially trusted code. You need to extend the sandboxed solution by making use of SPProxyOperation and SPProxyOperationArgs. Some ...


1

I would use Knockout JS to bind your inputs and jQuery to submit/create SPList items. here is an example of knockout dynamic row binding: http://knockoutjs.com/examples/gridEditor.html Personally i try to stay away from SPServices and rather use OOB JavaScript api's. Infopath is almost dead, i wouldn't invest my time creating forms etc with it.


1

I finally found one solution. It has all to do with the url of the site. It should be a valid url. It is a bit strange though because the url that I was providing was valid. To test it I created a new webapp with a site collection eg.: http://mysomething:5040 and visual web part was created successfully with the design file "....g.cs".


1

In SharePoint Online you can not use Farm solutions! You are limited to sandboxed solutions and Apps. You would have to rewrite and rearchitect your solutions to one of those two patterns. For sandboxed solutions, see here: http://msdn.microsoft.com/en-us/library/office/gg454741(v=office.14).aspx (Please note that sandboxed solutions, that are not no-code ...


1

To develop apps for SahrePoint Online you should select 'App for SharePoint' instead of Visual Web Part. You can choose from three types of hosting options, SharePoint-hosted, Provider-hosted or Autohosted. To know what are the differences between these options take a look at: http://msdn.microsoft.com/en-us/library/office/fp179887%28v=office.15%29.aspx. If ...


1

Got the answer by testing workarounds. Just I need to write some lines of code in the OnInit() method of form. if (Page.Request.Browser.Type.ToUpper().Contains("SAFARI")) { ScriptManager sm = ScriptManager.GetCurrent(this.Page); if (sm != null) { sm.EnablePartialRendering = false; } } Anything for ScripManger cannot be changed ...


1

Resource files in SharePoint are located in different folders, including these: C:\Inetpub\wwwroot\wss\VirtualDirectories\\App_GlobalResources\ $SharePointRoot$\14\Resources\ $SharePointRoot$\14\CONFIG\Resources\ $SharePointRoot$\14\CONFIG\AdminResources\ $SharePointRoot$\14\TEMPLATE\FEATURES\\Resources\ The target folder you use depends on what kind of ...


1

Based on documentation in MSDN it can't be done using the old regular way. Visual web parts don't directly support SharePoint server tokens such as $SPUrl. For more information, see "Token Restrictions in Sandboxed Visual Web Parts". Visual web parts in sandboxed solutions can't process standard tokens, such as $SPUrl, that the SharePoint runtime ...



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