Workflow, Collaboration, Enterprise Content Management

Book Excerpt: Programming Event Handling in Windows SharePoint Services

by John Holliday 5. September 2007 16:16

If you haven't had a chance to check out our book, Professional SharePoint 2007 Development, there is a nice excerpt from co-author Matt Ranlett available here that describes all the details you need to know for handling events in Windows SharePoint Services.

 

Comments

1/14/2008 8:17:40 AM

Guillermo

Holliday

i follow the sharepoint 2007 development event handler example and take trainning with you last october in Toronto. And need a little help here.

Need some help here see if you have seen the solution for this one or have access to the solution,

I got the following warning after uploading an image to a picture library via a custom created data type in a custom list, seems like the custom list is trying to upload the picture as an attachment (this is sharepoints behavior not my code) I’m uploading to the picture library but adding to that sharepoint tries to upload to the current custom list, in order to avoid that I’m writing a event handler in the itemadding event in order to redirect the warning page to something else but the redirection seems like is not going to work as the httpcontext is empty, it always returns null see code, and I cannot redirect my warning to a different page, any advice, my code is doing what it was build for but need some help in order to redirect the webpage.???????????


base.ItemAdding(properties);
base.ItemAdded(properties);
SPUtility.Redirect("listedit.aspx", SPRedirectFlags.UseSource | SPRedirectFlags.RelativeToLayoutsPage, HttpContext.Current);



blogs.officezealot.com/.../20618.aspx
blog.goinsane.co.uk/.../...rRatherWhatContext.aspx

Guillermo

Comments are closed
Twitter Facebook Linked-In Subscribe

Pro SharePoint 2007 Development  Pro SharePoint 2007 Records Management Development  6 Office Business Applications for SharePoint 2007

CAML.NET

SharePointPro 2010 SummitSharePoint Evolutions 2010


SharePoint Job Tweets



SPDEVNET

Developer Resources

  • Fields WSS XSLT - Custom XSLT stylesheet that displays the default SharePoint column definitions in a table.
  • Custom Action Identifiers - A sortable table of default field definitions, including CAML declarations for writing content types.
  • CAML.NET Documentation - Online documentation for the CAML.NET class library.