Skip to main content
 
Go Search
Home
Categories
Bloggers
By: Bob Moore | Posted: December 30, 2009 at 2:13 PM
I decided to expand on one of Travis Neilson's posts called Introducing Documents Sets.  Being the eternal developer that I am I decided to write a blog on how to create a Document Set using C# and the new object model for SP2010.    In trying to figure out how to do this, I though I would try the 2007 way and add a new ListItem to my test document library....well that didn't work so well.  While I was looking at the code for the NewDocSet.aspx page I stumbled upon a new assembly and namesp ... [more]
By: Bob Moore | Posted: December 30, 2009 at 1:58 PM
After being shown the Managed Metadata Service and the Term Stores in SharePoint 2010, I felt the need to figure out how to create all of the items that were shown to me in code.  Below is a list of new classes that we will be using to accomplish the task: TaxonomySession TermStore Group TermSet The code below will create a new group called "A Group" and then create a TermSet and populating the TermSet with items.  Here is the code: SPSecurity.RunWithElevatedPrivileges(delegate ... [more]
By: Bob Moore | Posted: October 23, 2009 at 4:47 PM
I decided to expand on one of Travis Nielson's posts called Introducing Documents Sets.  Being the eternal developer that I am I decided to write a blog on how to create a Document Set using C# and the new object model for SP2010.    In trying to figure out how to do this, I though I would try the 2007 way and add a new ListItem to my test document library....well that didn't work so well.  While I was looking at the code for the NewDocSet.aspx page I stumbled upon a new assembly and namesp ... [more]
By: Jeff Monnette | Posted: October 8, 2009 at 4:11 PM
Here is a generic extension method to get back an enum value from a string. It improves upon the Enum.Parse method by doing the following: 1) it encapsulates the cast of the value to the enum type; 2) supports an optional case-insensitive search; and 3) returns a boolean to indicate success or failure (rather than throw an exception).   ... [more]
By: Jeff Monnette | Posted: September 30, 2009 at 11:50 PM
Sometimes we find it useful to create patch features which are used to add new elements to our existing SharePoint sites. Oftentimes, these patch features make use of some of the same files as the larger features that are used for provisioning new sites. To support the creation of these patch features without manually copying the files that are shared across features, use Visual Studio file links and a customized MSBUILD target to automate the copy process. Here's how it works. First, in the ... [more]
By: Bob Moore | Posted: May 15, 2009 at 1:37 PM
I am working on an internal project that requires me to create and delete sites from a remote SharePoint site.  My first thoughts were "this will be easy I will use web services to do it".  Well I was wrong, the admin service only deals with site collections and not sub sites, so I had to do it the old fashioned way...RPC.  I read a blog when I was looking for an example that said SharePoint designer uses RPC.  I then started fiddler and SPD and created a site and deleted a site.  This ... [more]
By: Travis Nielsen | Posted: March 20, 2009 at 8:51 PM
And I mean much faster.  A few weeks ago, I posted about plotting all 48 continental U.S. states onto a Virtual Earth map.  Due to some unfortunate performance issues with rendering complex shapes using the VE map control IE 7, it was necessary for me to simplify them using one of the new SQL 2008 methods for geography data types.  By doing this, I was able to to get acceptable looking shapes in just under 10 seconds.  Not bad. I'm happy to report that exact same query now renders the same shape ... [more]
By: Jeff Monnette | Posted: September 30, 2008 at 5:55 PM
I recently came across a frustrating scenario in which my validator controls seemed to be set up properly but would not fire when expected.  Here's the background:   The validators and the controls that they were meant to validate were children of a user control that allowed the user to edit billing address information for a credit card payment processing page.  In the markup for the ASPX page, this user control had its Visible attribute set to false because the billing address edit form was n ... [more]
By: Jeff Monnette | Posted: September 27, 2008 at 9:16 PM
In previous posts, I described a few different uses of the MSBUILD Copy task to gather files into the required locations for packaging or testing.  While using this method over the last few months, I came across a quirky behavior of MSBUILD in which files added to a project after the build project was open were not getting copied.  It turns out that this is "as designed."    I was using the ItemGroup task to specify which files should be copied.  Because the group represented by t ... [more]
By: Talha Shah | Posted: August 14, 2008 at 4:36 PM
The C# 3.0 language and .NET 3.5 framework introduce several new language features. These new language constructs are useful individually in various contexts. In this blog I will show you how to use C# 3.0 extension methods to extend SharePoint (WSS/MOSS) API. The concepts are simple and once you learn them you can extend other applications in a similar manner. Extension methods enable you to "add" methods to existing types without creating a new derived type, recompiling, or otherwi ... [more]
By: Amol Ajgaonkar | Posted: August 12, 2008 at 10:21 PM
  To develop an edit/new/display form for a SharePoint list we have to implement the following steps: Get the list. Get the collection of all the columns If the form is in EDIT mode, get the item which is being edited. Render the columns that you want according to your requirements. Add the Save, Cancel buttons to the form and add the handler to it.   The first 3 steps are pretty straightforward. All of this information is available in the query string and SPContext. The fourth step is in ... [more]
By: Michael Becker | Posted: March 21, 2008 at 3:05 PM
One option for securing ASP.NET pages that – IMHO – gets neglected quite often is the use of CodeAccessSecurity "Permission Attributes." You can read more about the general approach here. Basically, they provide a very nice mechanism for encapsulating all of the rules you want to apply that will allow or disallow a particular user from viewing a page. You then drop the attribute onto the Page_Load event of the page you want to protect, and you're done. I thought I was going to ne ... [more]
By: Amol Ajgaonkar | Posted: October 22, 2007 at 4:45 PM
Dynamic controls & Post back Problem: Managing an array of Controls.   Problem: When you create an array of controls dynamically there are chances that you would notice the following behavior: 1.       When you click on one of the controls a post back will be triggered for some other control in the array of controls. 2.       When you click on the same control again then the post back will occur for the selected/clicked control. Reason: When a web request is received, a series of ob ... [more]
By: Daniel Herzog | Posted: June 11, 2007 at 6:41 AM
A shorter day today - and the last day of a whirlwind week in Orlando.  I caught sessions on SharePoint Designer, LINQ, and a great security presentation that was both fascinating and a bit scary. SharePoint Designer is one of those tools, like its predecessor FrontPage, that I think many developers may look down upon - you know, "real developers don't use this."  I'm now convinced that it does have its place in even the most hard-core SharePoint developer's toolkit.  You can learn ... [more]
By: Daniel Herzog | Posted: June 7, 2007 at 6:36 AM
I managed to cover quite a bit of material at TechEd on Thursday - a bit about upgrading custom sites from WSS 2.0 to 3.0, some good info on SharePoint features and templates, a nice intro to Team Foundation Server, some new ideas for SharePoint workflow, and more vendor tools.   As a quick aside, I'm wondering what the more common pronunciation is for "Guid"?  I've always said "goo-id" but most of the presenters here say "gwid".  Feel free to leave a comment wi ... [more]
By: Daniel Herzog | Posted: June 6, 2007 at 10:45 PM
Advanced Web Parts and Custom SharePoint field types were on tap today at TechEd.    Andrew Connell held a great session on Building Advanced Web Parts with ASP 2.0.  He gave some examples of building advanced features in Web Parts... How to customize the Web Part 'Verbs Menu.'  How to build an asynchronous Web Part in SharePoint, even though SharePoint doesn't support it. Building connected Web Parts - its much easier in SharePoint 2007 than it was in 2003.  Code Access Security Po ... [more]
By: Daniel Herzog | Posted: June 5, 2007 at 10:13 PM
MOSS Search, InfoPath, and more SharePoint were on tap today.  Here's some highlights.   Search is one of the most powerful features of MOSS, but as a developer -even one with a ton of MOSS experience, thank you very much - it isn't something I've spent too much time working with.  It was great to get some exposure and advice on search configuration today.   Here's the configuration basics as I understand it now - if anyone finds anything that needs correction, please leave a comment!  The ... [more]
By: Daniel Herzog | Posted: June 4, 2007 at 8:10 PM
A successful Monday.  Aside from free t-shirts (ultra-stylish?  you bet!) and other swag, there were some good sessions, and a fun Keynote by Bob Muglia.   The Keynote started with a 'Back to the Future' thing - with Christoper Lloyd, the DeLorean, and everything.  The joke was that MS's "visions" of the future were getting a bit stale, so let's concentrate on what we can do today in the real world.  Bob wanted to drive home the point that organizations should be able to look at IT ... [more]
By: Daniel Herzog | Posted: June 3, 2007 at 9:02 PM
I arrived at TechEd 2007 in Orlando last night, and today I has the privilige of attending a pre-conference seminar on Software Architecture given by Ron Jacobs.  Ron is a very sharp guy with some great and unique insight into just what software architecture means.  Check out his radio and TV shows to hear it from him firsthand.   You can download his presentation slides from his site.  The seminar was an all-day event, and he covered quite a few topics in some detail.  Overall, I left with ... [more]
By: Hersh Ajgaonkar | Posted: December 27, 2006 at 10:54 PM
On various projects, there are occassions when files are left locked by team members leaving the project or while on long vacations. In VSS, the administrator could simply select the file(s) and chose to undo-checkout. A couple of months ago, our TFS installation was moved from one domain to another and some files were locked out with user accounts from a domain that was retired. Well, being the admin, I thought it was just a matter of selecting the files and unlocking them. Well, guess what ... [more]
By: Matt Morse | Posted: December 18, 2006 at 11:20 AM
I was working on a task recently that required some documentation, and I looked for an old friend, NDoc, which I had used in the past -- but only with .NET 1.x projects, apparently.   As it turns out, I'm a couple of months behind the times, and the primary developer is not going to pursue development on NDoc 2.0 for various reasons. At least one of the reasons that Kevin opted not to continue development was the announcement of the release of Sandcastle from Microsoft, which performs exactly ... [more]
By: Dave Scheele | Posted: September 30, 2006 at 8:03 AM
If your application needs to move a file, one way to do this is to use the .NET Framework System.IO.File.Move method, which moves the specified file from one file system location to another. Unfortunately, this method does not permit you to cancel the operation, nor does it provide progress information. So using this method to copy a 4GB VHD, for example, would appear to freeze your application. If you would like to provide move file functionality with the ability to cancel the operation an ... [more]
By: Dave Scheele | Posted: September 30, 2006 at 8:03 AM
The .NET Framework HttpWebRequest permits the developer to access resources on a server using the HTTP or HTTPS protocols. Some very secure systems, however, require a client X509 certificate as evidence to access resources. Setting this up in an ASP.NET application is not straightforward because the default ASP.NET service account has limited permissions and does not have the required access to the local certificate store. The basic idea is to add the desired X509Certificate to the ClientC ... [more]
By: Dave Scheele | Posted: September 30, 2006 at 8:02 AM
In Oscar Meszar's recent weblog entry, Config Files in Office Add-ins, he describes the need to set up configuration information specific to a DLL. The "official" method of configuring a .NET application is to create a configuration file associated with the executable file (or the web application), but DLL-specific configuration is only possible with a bit of work. In his case, he chose to create a separate configation file parser. I encountered the same problem on a client engageme ... [more]
View RSS feed