Hi,
I'm developing an ASP.NET (C#) application using EPiServer CMS 5. On the startpage we have four WebPart-zones and everything works great running it through Visual Studio. When publishing it to the production-server (IIS 7) the startpage shows as a blank page, no error what so ever...
When we remove these lines of code it works, so...
Code:
public static void ChartPageConnector(SPWeb web, string pageURL, string providerWpId, string consumerWpId, string mappedName)
{
SPFile file = web.Files[pageURL];
SPLimitedWebPartManager mgr = file.GetLimitedWebPartManager(PersonalizationScope.Shared);
TransformableFilterValuesToFilterValuesTran...
Is it possible to read the Global Navigation of all the sub sites and display the items (links or category) from a Web Part that should be in a master page?
Don't forget that the global navigation can be edited in the settings, so I can't just loop on pages and sub sites. :(
...
please help me. I started coding something complicated and then realized my event handlers don't work.. so i super simplified a button with an eventhandler... please see the code below and maybe you can tell me why it doesn't fire?
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Web.UI;...
I want to change textbox in NewForm within custom dll that imported to the page.
I have NewForm and paste there asp textbox and SP formfield (want to change anyone):
<asp:TextBox id="test" runat="server" >Tex</asp:TextBox>
<SharePoint:FormField runat="server" id="ff3_test" ControlMode="New" FieldName="Customer" OnLoad="alert(this)"/>
...
This is a classic sort of question, I suppose, but it seems that most people are interested in having the textbox cause a postback. I'm not. I just want the event to fire when a postback occurs.
I have created a webpart with a custom editorpart. The editorpart renders with a textbox and a button. Clicking the button causes a dialog t...
Hi,
I'm working on a portal/CMS project and (unfortunately) build the foundation on WebParts platform.
However I need to provide an option for admin to choose whether a webpart should be display in all pages or not. Finally I've found a nice article from Damon Armstrong that describes a way to store all personalization data of a group ...
I have one web part (the provider) which displays insurance claims in a gridview. When user clicks on one this value(case number) is passed via IWebPartField interface to another web part(consumer) which displays detailed info about the claim. So far so good. I can select different claims in the provider and the details show up in the ...
I'm trying to create a custom property for my web part, but can't get it to show up in Sharepoint. Here's my current code :
[Serializable]
[XmlRoot(Namespace = "MyWebPart")]
[DefaultProperty("Text")]
public class MyWebPart : WebPart
{
...
[Category("My Web Parts Properties")]
[DefaultValue(defaultPropertyValue)]
[WebPart...
I have a VS 2008 web parts project - in this project is a web.config file:
something like this:
<?xml version="1.0"?>
<configuration>
<connectionStrings/>
<system.web>
<appSettings>
<add key="MFOwner" value="Blah" />
</appSettings>
…….
In my web part I am trying to access values in the appSetting section:
I've tried ...
I've been writing some SharePoint web parts which connect (as providers and consumers). I've found many difficulties, and (comparatively*) little material from the web, from books, or from microsoft.com, which is quite surprising as Web Parts have been around since 2003. This is making me think that although web part connections look lik...
Hi, I am working for a project on disaster management sponsered by World Bank,
under this project i have assigned work on CMS. and my senior has asked me to make a ASP.NET webpage where those logged with administrator privilege will be able to edit the page.
like:-
<div id="mydiv"><pre>+++++++MY CONTENT+++++++++++++++++++</pre></div>
...
Hello -
I've built a custom SharePoint 2010 web part and deployed it to the home page of a publishing site. It's a very simple web part that just displays items from a SP list in a drop down list. The web part works fine if I'm logged in as a site owner or a member but not if I'm just a reader. The web part doesn't render at all to read...
I've been reading this msdn post:
http://msdn.microsoft.com/en-us/library/aa981241.aspx
trying to edit the content query web part to only show items from the event list which either occur within 30 days or reoccur within 30 days. It is straight forward to deal with events which do not reoccur because I can compare [Start Date] to [Today...
I am working on a Visual WebPart, where I need to consume a Custom Web Service.
I have a added a WebReference to the service which seems to be working fine.
Issue here is that if I am changing URL Behavior of service reference to Dynamic, its not adding any configuration entries or updating Reference.cs to retrieve URL from configurati...
've programmatically created a listview, for displaying images. When you click on the download the ItemCommand is fired, and the browser sends the user the image as a binary response, using the following:
SPFile ImageIfile = spfolder.Files[ServerName];
byte[] bs = ImageIfile.OpenBinary();
string res = Page.Response.ContentType;
Page.Res...
I'm prototyping the best way to dynamically connect web parts at runtime. Essentailly, the application will allow for several disparate application groups to create web parts that will be consumed within the SharePoint front end. All of the web parts will need to automatically detect consumers and providers to create connections at run...
I have finally ventured away from the land of PowerShell to C# stuff for SharePoint. I created a webpart, which I will describe in a bit, that works perfectly on my development server but runs slow on my production. The difference being is that my production server has over 1400 groups while the development has only 20 or so.
My webpa...
Is there any webpart (free or purchased) that can be set to display the permissions for a list or document library? We want to set up pages that contain a view to a document Library and a section at the top of the page that lists what users can access the library, to ensure that users adding content to the library don't accidentally plac...
I have a suite of webpart controls that I maintain and develop for our main Sharepoint offerings. I also have an Asp .Net website which acts as a test suite for selenium scripts and unit tests.
How can I determine from the web part code server code whether the control is currently being hosted in a Sharepoint page or whether the webpar...