DCSIMG
C# - Doron Goldberg

Browse by Tags

All Tags » C# (RSS)
In his great article “ Hierarchical Data with LightSwitch ” Michael Washington is demonstrating how Lightswitch can be extended using custom Silverlight controls. The article helps to build a tree view control for displaying hierarchical information such as departments, categories etc.  After implementing the solution I wanted to extend the tree view so it will effect the screen itself and refresh the selected item data according to the selected node in the tree (The solution brought in the...
Posted by dorong | 2 comment(s)
My “portal sharing web part” is a web part I’m currently working on which will allow users to interact socially with one another based on “my site” – directly from the portal itself. The look will include 3 buttons for 3 actions: Upload an image Status update Post a survey In this post I will focus on the 2nd button – status update. As you know “my site” now has a “users says” feature which is basically a status update: Using my web part I wanted to allow users inside the corporate portal to update...
Posted by dorong | with no comments
A few days ago we started migrating a portal site from one web application to another on the same machine. As part of the migration process I needed to copy lists from the old site to the new site. Some lists, contained Person list columns, with single or multiple selection. While the migration went smoothly during the export/import process itself the result was weird – all the user names were altered on the new portal.   Reason:   1. Person list columns store the user name (as text) and...
Posted by dorong | 3 comment(s)
תגים:, , , ,
In case you came across a situation where you suddenly can’t browse your MOSS 2007 application locally, but still can access remote MOSS servers while others can access your application remotely: KB963027 The solutions are: 1. Uninstall the update 2. Use IE6… 3. http://support.microsoft.com/kb/963027/ – read for more details For more information see also: http://blog.mpecsinc.ca/2009/04/sbs-2008-ie-update-kb963027-breaks.html http://spiderwool.blogspot.com/ http://msmvps.com/blogs/bradley/archive...
Posted by dorong | 1 comment(s)
תגים:, , , ,
I managed to wrap both search provider into a feature so it will be easier to deploy them. The new feature includes a simple WebPart which displays link buttons for installing the providers. Installation process can be viewed here:   The entire solution can be downloaded here . In order to compile these files need to be copied into your Program Files/Netwise. (The wsp file in located inside wsp/Debug folder inside the project)
Posted by dorong | with no comments
This post is following the previous one . In this post I will demonstrate the second search provider for MOSS – the documents search provider for IE8. I will be using the same solution, using the same method so this time I will only demonstrate the changes between the two. (The HTML is the same HTML from the previous post) The service The interface looks like this: [ServiceContract] public interface IDocumentSearchService { [OperationContract] [WebGet(UriTemplate = " /Search?q={word} "...
Posted by dorong | 3 comment(s)
In this post, and the one following it I will present two new search providers for MOSS 2007. Search provider is an old feature of common browsers, IE8 brings it into a new level with the extended visibility it provides for search results. You can read more about IE8 search providers IE8 search provider . The two search providers I will present will be: 1. People search provider for searching people in the portal. 2. Documents search provider for searching documents in the portal. As we all know...
Posted by dorong | 9 comment(s)
As already known, settings forms of MOSS 2007 can usually be found at: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\LAYOUTS Each form (*.aspx file) can be accessed from any site on the portal inside /_layouts folder. for example: http://doron-g/_layouts/settings.aspx and http://doron-g/SiteDirectory/wiki/_layouts/settings.aspx Each showing the same form, exposing enabled featured for each site. In the following posts I will demonstrate how to add new forms to the...
Posted by dorong | 5 comment(s)
תגים:, , ,
public static class StringOpoerations { public static string UTF8ByteArrayToString( this byte [] data) { var encoding = new UTF8Encoding(); return encoding.GetString(data.ToArray()); } public static byte [] StringToByteArray( this string str) { var encoding = new ASCIIEncoding(); return encoding.GetBytes(str); } } public static class SerializationOperations { public static T DeserializeObject<T>( this String pXmlizedString) { var memoryStream = new MemoryStream(pXmlizedString.StringToByteArray...
When calling GetListItems from /_vti_bin/lists.asmx to get records from a list which has columns with Hebrew names, the columns turn up to be empty after loading the xml to a DataSet. The reason is probably because the columns name shows different in the ows_MetaInfo then name as it appears in the row data returned from the web service: From the row: ows__x05ea__x05d0__x05e8__x05d9__x05da__x05de_="2008-03-20 00:00:00" From ows_MetaInfo: תאריךמ:SW|2008-03-20T00:00:00Z In order to transform...
Posted by dorong | 1 comment(s)
תגים:, ,
While I was examining Olivier Carpentier's WSS List DataSource on http://www.codeplex.com I decided to try and create a similar tool for MCMS. The basic idea was to create a custom placeholder which allows content editors to select WSS lists from a remote MOSS server. But first, a few words on MCMAS custom placeholders: A Placeholder is a control which has 2 major instances – one for users where it displays the content and one for the content editor so they can alter the content. Creating a custom...
Posted by dorong | with no comments
תגים:, , , ,
Yesterday I published on thecodeproject a small add-in I created a while ago, when I was first playing around with the "Visual Studio Add In" project. The add-in is a very simple utility which adds a button to the tools menu for converting code that is on the clip board. The possible conversions are form c# to vb.net and from vb.net to c#. Copy VB.NET: Select to conversion button: Your C# code: The add-in is using an online code translator which can be found here :
Posted by dorong | 22 comment(s)
תגים:,
While developing a feature developers often need to generate GUIDs, get assembly full names, alter XML's etc. One of the most helpful tools is available from Andrew Connell . After I managed to make it work (uninstalling any reminder of visual studio 2008 from my machine) it worked great and did make my life easier. The only problem with the solution are the pre requirements - Refactor Pro! & CodeRush . Both are great extensions for Visual Studio, only they cost 250$ and we are not planning...
Posted by dorong | with no comments
A few weeks ago I was trying to run a workflow on my local machine using a remote Sql Server 2000 for the tracking & persistence services. “Windows Workflow Foundation provides an implementation of it through the SqlWorkflowPersistenceService. This class saves workflow data to a SQL Server 2000 or SQL Server 2005 database with a well-known schema.” While the official documentation is referring Sql Server 2005 & Sql Server 2000 the same - reality proved me otherwise: To summarize things all...
As part of fixing old legacy code (written ~5 years ago and being maintained ever since) I asked one of my programmers to search all try-catch clauses in the application and make sure log4net is logging them. What I found was that people use try-catch a lot as part of their debugging procedure or "let's cover up our failures" and as part of the application logic. All of them are WRONG uses of the try-catch mechanism! Some examples: Example #1 - "LET'S PLAY CATCH!" try { ... } catch (Exception ex...
Posted by dorong | with no comments
תגים:, ,
More Posts Next page »