Posts Tagged ‘Visual Studio’
Posted by PANVEGA on June 2, 2009
In this post I wanna explain in a few steps how to develope a custom Silverlight Navitgation for SharePoint publishing sites (Source Silverlight Blueprints on CodePlex)
SharePoint and Silverlight Blueprints on CodePlex were uploaded to include two more Silverlight RTM samples: custom navigation in SharePoint and the colleague viewer. These blueprints provide samples for you to build and explore using Silverlight as an alternate way to develop and integrate powerful user experiences within SharePoint and add rich Internet application functionality to your SharePoint sites. Included in the overall set of samples are a Hello World sample, a Slider sample, and the recently added Custom Navigation and Colleague Viewer samples added
Read the rest of this entry »
Posted in ASP.NET, C#, DotNet, MasterPage, SharePoint, Silverlight | Tagged: ASP.NET, C#, DotNet, MasterPage, SharePoint, Visual Studio | 1 Comment »
Posted by PANVEGA on February 16, 2009
I wonna show you how easy it is to manipulate the InfoPath Formular in C# Codebehind. The compiled DLL becomes part of the InfoPath form template (XSN) file.
1. First you have to install the VSTA tools for Visual Studio.
With the familiar Visual Studio development environment, VSTA enables Visual Basic and Visual C# developers to easily build managed customizations for both COM and .NET applications. The VSTA SDK includes integration tools, samples, and documentation to help you get started with VSTA.
Download Visual Studio Tools for Applications (VSTA) here
2. Then create in InfoPath a new Formular with some for instance textboxes and Submit buttons. Under Tool–> Programming –>Microsoft Visual StudioTools… you will automatically redirected to the VS CodeBehind InfoPath Project.
3. In addition the Tool deploys a dll in your XSN file when building the project. Read the rest of this entry »
Posted in C#, DotNet, InfoPath, SharePoint, XPath | Tagged: C#, InfoPath, SharePoint, Visual Studio, XPath | 2 Comments »
Posted by PANVEGA on February 3, 2009
In this post I want to show you how to rebuild the standard MyLinks –> Add to My Links for a custom MyLinks Control in Visual Studio and using ASP in JavaScript.
Active Server Pages exposes an object called ServerVariables, which is part of the Request object. This ServerVariables object allows the programmer to see many environment variables. You can use the ServerVariables along with IIS’s directory sercurity options to determine who is currently accessing your site. You can also grab the visitor’s IP address using the ServerVariables object. This article includes a question and answer from the Activer Server Pages mailing list, as well as an excerpt from the Visual InterDev 1.0 help files detailing all of the properties of the ServerVariables object.
http://panvega.wordpress.com/2008/02/24/different-way-how-to-customize-the-mylink-in-moss (4. How to develop your custom MyLink Control in Visual Studio.) Read the rest of this entry »
Posted in ASP.NET, C#, Delegate Controls, Deployment, DotNet, JavaScript, My Links, My Site, SharePoint | Tagged: ASP.NET, C#, Delegate Controls, JavaScript, My Links, My Site, Solution Deployment, Visual Studio | 2 Comments »
Posted by PANVEGA on January 20, 2009
Microsoft Office SharePoint Designer 2007 allows non-developers to create custom workflows in a straightforward way by using the workflow designer it provides. During the process, the user “glues” together different activities that represent the steps for the workflow. There are numerous activities one can use and the list is extensible. Developers can use Microsoft Visual Studio 2005 to build additional activities and deploy them, so that they are available in Office SharePoint Designer 2007.
My example in the post extendes the default out of the box Activity in the SP Designer (Copy List item). In the default activity you can only copy an item in the same site. I added a new attribute DestinationListUrl which copies the select item from the root list by using the SP Object Model to the destination list in an other site collection.

On Codeplex you find some useful custom SP Activities Read the rest of this entry »
Posted in Administration, C#, Deployment, DotNet, Object Model, SPDesigner, SharePoint, Workflows, XML | Tagged: Administration, C#, Custom Activity, Object Model, SharePoint, SP Designer, Visual Studio, Workflows, XML | Leave a Comment »
Posted by PANVEGA on January 19, 2009
In reference to my previous post about binding a Custom ContentType to a new ListInstance, I wanna solve this issues belowe with a SPFeatureReceiver class in Visual Studio.
http://panvega.wordpress.com/2009/01/19/how-to-bind-a-customcontenttype-to-a-listinstance-feature
http://panvega.wordpress.com/2008/11/05/how-to-develope-a-custom-sp-eventreceiver
First off the default view of your list does not contain those custom columns. When you select the item you will of course see all of your columns but they aren’t listed in the default view. Secondly the default content type for the list is still available to the user. In the case of a generic list the “Item” content type is still present. So when a user enters a new item they are able to select Item or your custom content type. This may not be desirable. Also if you are using the API to insert a new item into the list it will use the list’s default content type instead of the one you may be expecting. Once again this may not be desirable.
To overcome these restrictions we’re going to create a generic feature receiver that can be reused on any implementation using this technique. Read the rest of this entry »
Posted in C#, Custom Content Types, Deployment, DotNet, Event Receivers, MasterPage, Object Model, SharePoint, Site Definition | Tagged: C#, Custom Content Types, Event Receivers, MasterPage, Object Model, SharePoint, Site Definition, Solution Deployment, Visual Studio | Leave a Comment »
Posted by PANVEGA on November 5, 2008
In this example I wanna show you how to easy it is to develope a synchron Task für a SP List in Visual Studio. The receiver event fires, when you want to delete e.g. a task from the Tasklist while it is under progress or not complete. That is why we need a synchron Task. Here you cancel the deleting action and throw an error message.
Synchonous event ends with at -ing e.g. ItemDeleting. Asynchonous event ends with at -ed e.g. ItemDeleted.
Read the rest of this entry »
Posted in Deployment, Event Receivers, SharePoint | Tagged: Event Receivers, SharePoint, Visual Studio | Leave a Comment »
Posted by PANVEGA on July 4, 2008
Introduction:
User controls provide a means by which custom graphical interfaces can be created and reused. A user control is essentially a component with a visual representation. As such, it might consist of one or more Windows Forms controls, components, or blocks of code that can extend functionality by validating user input, modifying display properties, or performing other tasks required by the author. Read the rest of this entry »
Posted in ASP.NET, DotNet, UserControls | Tagged: ASP.NET, DotNet, UserControls, Visual Studio | Leave a Comment »
Posted by PANVEGA on March 19, 2008
In this short post I wanna show you why accessing the Lists.asmx Webservice by giving the appropriate View ID as a parameter. In one of my previous posts I gave you a detail view in this SharePoint Webservice.
http://panvega.wordpress.com/2007/09/15/consuming-listsapsx-webservice-from-sharepoint
I wanna demonstare why it is usefull accesing a custom WS view. If you leave the View parameter in your method null, the service always reference to the default List View. However usually your default View is what the user should see, when he enters the list. When you wanna hide any fields, which are not interesting for the user, but for your Webservice consumtion, you should build a custom backend View extra for your Webservice.
Note. You only receive the values from the View you just accessed. Other columns are not in your WS return value.
You get the View ID for instance from the URL.
Read the rest of this entry »
Posted in C#, DotNet, SharePoint, WebServices | Tagged: C#, SharePoint, Visual Studio, WebServices | Leave a Comment »
Posted by PANVEGA on November 12, 2007
In a country where English is not the native tongue, localisation can be pretty important. Localisation within SharePoint is achieved by using resources and resource files. Although the use of resources is not mandatory, it’s usually good practise to use them anyway. You don’t want to hard code strings in your application, and, moreover, you never know when your application should be localized. Setting up and using these resources in SharePoint can be quite confusing. So here is a little article covering this topic.
Read the rest of this entry »
Posted in ASP.NET, Deployment, SharePoint | Tagged: SharePoint, Solution Deployment, Visual Studio | Leave a Comment »