Als SharePoint Developer bij Wortell houd ik me bezig met het ontwerpen en ontwikkelen van maatwerkoplossingen bovenop het SharePoint platform

The pubic beta’s for SharePoint 2010 and Office 2010 are available now!

http://bit.ly/ZI2010

Together with the 3 preview videos released today about SharePoint 2010, Microsoft released a first technical preview of the SharePoint 2010 developer documentation
Download here

SharePont 2010: Sneak Peek videos

Paul Pascha, 13 juli 2009

Today Microsoft published three videos as a Sneak Peek into SharePoint 2010:

The videos present a broad overview about what SharePoint 2010 will offer. Since I’m primarily a developer I had a very pleasant time watching the developer video. I can’t wait to get my hands on it and to see, hear & feal more about SharePoint 2010 at the SharePoint Conference 2009 in Las Vegas!

When using SPUtility.SendEmail() to send an e-mail message from within a site on which anonymous access is enabled, you have to specify the from address.

The code in the fragment below is executed in the SendEmail method and explains why:

email = messageHeaders["from"];

if (email == null){  email = web.CurrentUser.Email;}else{  email = FoldEmailHeader(email, "from", true);  count--;}

The code listed above is being executed in the SendEmail method (obtained by using Reflector). As you can see, if the “from” address is not in the StringDictionary “messageHeaders”, the from address is being retrieved from web.CurrentUser. Since anonymous access is being used, this will obviously fail.

Group your Validators

Paul Pascha, 5 maart 2009

When you’re building a WebPart that uses some of the ASP.NET validator controls, make sure you specify a validation group for all of them and for the Control firing the validation (i.e. the Submit button). Also, if you’re using a validation summary specify it’s validation group property too.

If you don’t do this, the validation might be fired by other controls rendered by SharePoint preventing you to navigate away from the page. I just ran into this since I created a new Page in a Publishing site. I added my WebPart to this Page and then I wanted to Publish the page. The “Submit for Approval” control in the “Page Editing Toolbar” fired the validation so I had to fill in all my required fields first in order to be able to enter the approval process.
So, I think it’s a best-practice to always use ValidationGroup inside of WebParts.
  • Categories

  • Tags

  • Blog Authors

    Amy
    anita
    Anneke
    Danny Burlage
    Dennis Vendel
    Freek Berson
    Gerard
    Iris
    Jasper Oosterveld
    Jean-Claude Chan
    Jorn
    Lab Chicks
    Luc Joziasse
    Maarten van Noort
    Maarten Wijsman
    Marlon
    Martijn Bellaard
    Natasja van Doorn
    Paul Pascha
    Peter Heuvelman
    Rick Slager
    Robert van Son
    Roel
    Roeland Jimenez
    SanderZ
    Sjoerd Schudde
    Stefan van der Wiele
    Tim Heuperman
    Wortell
  • Archief