SharePoint Development Blog

Nick Boumans
View my LinkedIn Profile Follow me on Twitter View my Profile on FaceBook View my projects on CodePlex View my presentations on SlideShare



Recent posts

Tags

Categories

Navigation

Pages

Archive

Blogroll

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

Embed a Video into a SharePoint Page

Since we can paste HTML-code into a Content Editor Webpart we can also embed code for YouTube. E.g. go to YouTube, find your favourite movie, select the embed code and insert it into a Content Editor Web Part. There is also a Media Player WebPart for SharPoint (MOSS and WSS). You can read more about this WebPart on Alex Pearce's SharePoint Blog.
Posted: Nov 28 2008, 03:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: SharePoint General

Integrating SharePoint 2007 and jQuery

Jan Tielens is working on a nice menu using jQuery.  He also wrote some posts about integrating SharePoint 2007 and jQuery. You can find them here. I think we will soon find a nice post or release about this nice menu.

Posted: Nov 28 2008, 00:00 by Nick Boumans | Comments (2) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: SharePoint General

First Public Description of the planned language features of C Sharp 4

A first public description of the planned language features of C# 4.0 (Visual Studio 2010) can be found in the next article on MSDN.
Posted: Nov 27 2008, 00:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: Visual Studio

Free Microsoft E-Book 7 Dev Projects MOSS 2007 and WSS

You can download this e-book for free from the Microsoft Site in PDF - Format.

Acknowledgments

Many people had a hand in putting this book together. Mike Fitzmaurice, of the Office Servers team, initiated the project. Ted Pattison wrote Chapter 1 and 2, and John Pierce, a technical writer with Microsoft's Information Worker Adoption Group, wrote and compiled the information presented in Chapters 3 through 9.

Ben Ryan and Melissa von Tschudi-Sutton of Microsoft Press guided the book through publication. Curt Philips managed the team that edited and produced the book, and Andrea Fox was the copy editor.

Memebers of the Excel Services team, including Jeff Wierer, Eran Megiddo, and David Gainer, provided material and reviews for the chapter about Excel Services. Dave Webster contributed to the chapter about Windows SharePoint Services workflows. Thanks also to the teams that put together the material for the beta versions of the Microsoft Windows SharePoint Services 3.0 SDK and the Microsoft Office SharePoint Server 2007 SDK.

Finally, thanks go to Rob Barker, Joel Frauenheim, Garry Gross, and other memebers of the Micorosft Office Solution Showcase team for ther support of this project.

Posted: Nov 26 2008, 03:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: SharePoint General

SDN Article Magazine 99

On November the 21st my first article is published in the SDN Magazine (Software Development Network). You can view the article by clicking the next link.

SDN-Magazine 99 Nick Boumans.pdf (268.70 kb)

Note: Article is written in my native language: Dutch.

Posted: Nov 26 2008, 00:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: Career

Community Kit for SharePoint

However, this tool is on the market for some months I first saw it in action last friday. Especially the blog template is really cool.

"The Community Kit for SharePoint is a set of best practices, templates, Web Parts, tools, and source code that enables practically anyone to create a community website based on SharePoint technology for practically any group of people with a common interest."

Download: http://www.codeplex.com/CKS

Posted: Nov 15 2008, 18:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Problem - Dynamic Load Webservice

After reading this mailthread on MSDN it seems to be possible to dynamically load a webservice (load on demand). However I got the following error on this line of code:

Object response = methodInfo.Invoke(obj, args); 

[/code]

 

Also this tool on CodePlex causes the same error on the same line. Click on the image below for a screenshot of the error. 

Since I get this error in a environment with a domain logon account I tried the following Credentials:

// method 1

webRequest.PreAuthenticate = true;
webRequest.Credentials = new NetworkCredential("username, "password", "domain");

// method 2

System.Net.CredentialCache.DefaultCredentials; 

[/code]

 

All code is executed correctly. If it was really an authentication error I wasn't inpossible to read the webservice stream (in my opinion). So it seems I'm well authenticated.
Is there someone who get this working or have an alternative?
Thanks!! 

Posted: Nov 14 2008, 00:00 by Nick Boumans | Comments (1) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Best practices for SharePoint Guidance

On Alex Blog about Microsoft I read about this guidance on the MSDN site.

This guidance helps architects and developers design, build, test, deploy and upgrade SharePoint intranet applications. A reference implementation that is named the Contoso Training Management application demonstrates solutions to common architectural, development, and application lifecycle management challenges.

This guidance discusses the following:

  1. Architectural decisions about patterns, feature factoring, and packaging.
  2. Design tradeoffs for common decisions many developers encounter, such as when to use SharePoint lists or a database to store information.
  3. Implementation examples that are demonstrated in the Training Management application and in the QuickStarts.
  4. How to design for testability, create unit tests, and run continuous integration.
  5. How to set up different environments including the development, build, test, staging, and production environments.
  6. How to manage the application life cycle through development, test, deployment, and upgrading.
  7. Team-based intranet application development.


The following areas are not discussed in the current version of this guidance:

  1. Content-oriented sites that use Web content management
  2. Internet and enterprise-scale SharePoint applications
  3. Multilingual SharePoint applications
  4. Scale or security testing of SharePoint applications

Navigate to Guidance on MSDN

Posted: Nov 14 2008, 00:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: SharePoint General

Snippet Creator

In my archive I found this cool snippet tool. I wrote it a long time ago (for Visual Studio 2005) for easily create C# code snippets for Visual Studio 2005. Maybe it would be useful for you as basic application for further development.

Click on the image below for a screenshot. 

// Snippet files are saved in:
// C:\Documents and Settings\<User>\My Documents\Visual Studio 2005\Code Snippets\Visual C#\My Code Snippets
// or
// C:\Program Files\Microsoft Visual Studio 8\VC#\Snippets\1033\Visual C#
namespace SnippetCreator
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void WriteSnippetFile(String fileName)
        {          
            FileStream file = File.Create(fileName);
            StreamWriter writer = new StreamWriter(file);
            writer.WriteLine("<?xml version=\"1.0\" encoding=\"utf-8\" ?>");
            writer.WriteLine("<CodeSnippets xmlns=\"http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet\">");
            writer.WriteLine("<CodeSnippet Format=\"1.0.0\"><Header><Title>");
            writer.Write(txtTitle.Text);
            writer.WriteLine("</Title><Shortcut>");
            writer.Write(txtShortCut.Text);
            writer.WriteLine("</Shortcut></Header><Snippet><Code Language=\"CSharp\"><![CDATA[");
           
            writer.Write(txtSnippetCode.Text);
            writer.Write("]]></Code></Snippet></CodeSnippet></CodeSnippets>");
            writer.Close();
            file.Close();                       
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(txtTitle.Text) ||
                String.IsNullOrEmpty(txtShortCut.Text) ||
                String.IsNullOrEmpty(txtSnippetCode.Text))
            {
                MessageBox.Show("Some fields are empty! Please fill out them and try again...");
                return;
            }
                           
            SaveFileDialog saveFileDialog = new SaveFileDialog();
            saveFileDialog.Title = "Save a Snippet File";
            saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Visual Studio 2005\Code Snippets\Visual C#\My Code Snippets";
            saveFileDialog.Filter = "Snippet File|*.snippet";
            saveFileDialog.ShowDialog();

            try
            {
                if (saveFileDialog.FileName != "")
                {
                    WriteSnippetFile(saveFileDialog.FileName);
                }
                MessageBox.Show("Snippet: " + txtTitle.Text + " succesfully added!");
                txtTitle.Clear();
                txtShortCut.Clear();
                txtSnippetCode.Clear();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());               
            }                   
        }
    }
}

[/code]

 

Posted: Nov 12 2008, 12:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: Visual Studio

RSS Feeds to DataSet using DotNet

The following static function returns a generic list of the type "Feed" containing the RSS Feeds based on a url. As an option you can also specify a proxy. 

namespace RssFeed
{
    public class Feed
    {
        private string title;
 
        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        private DateTime pubDate;

        public DateTime PubDate
        {
            get { return pubDate; }
            set { pubDate = value; }
        }

        private string link;

        public string Link
        {
            get { return link; }
            set { link = value; }
        }

        private string description;

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        public static List<Feed> GetRssFeedList(String rssUrl)
        {
            WebProxy proxy = new WebProxy("proxy.myurl.com", true);
            DataSet ds = new DataSet();
            Uri url = new Uri(rssUrl);

            HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);
            objRequest.Proxy = proxy;
            WebResponse response = (objRequest.GetResponse());
            StreamReader stream = new StreamReader(response.GetResponseStream());
            ds.ReadXml(stream);

            DataTable table = ds.Tables["item"];

            List<Feed> feeds = new List<Feed>(table.Rows.Count);
           
            foreach (DataRow row in table.Rows)
            {
               
                Feed feed = new Feed();
                try
                {
                    feed.Title = row["title"].ToString();
                    feed.PubDate = Convert.ToDateTime(row["pubDate"]);
                    feed.Link = row["link"].ToString();
                    feed.Description = row["description"].ToString();
                    feeds.Add(feed);
                }
                catch (Exception)
                {
                    // error handling
                
                }              
               
            }

            return feeds;
        }
   
    }
}

[/code]

 

Posted: Nov 12 2008, 03:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: Visual Studio