﻿<?xml version="1.0" encoding="UTF-8"?>
<!--RSS generated by Windows SharePoint Services V3 RSS Generator on 9/10/2010 4:33:44 AM-->
<?xml-stylesheet type="text/xsl" href="/blog/_layouts/RssXslt.aspx?List=c79c9741-d7be-4f69-8a32-d64b11e0e702" version="1.0"?>
<rss version="2.0">
  <channel>
    <title>SharePoint and the Office System: Posts</title>
    <link>http://www.mannsoftware.com/blog/Lists/Posts/AllPosts.aspx</link>
    <description>RSS feed for the Posts list.</description>
    <lastBuildDate>Fri, 10 Sep 2010 08:33:44 GMT</lastBuildDate>
    <generator>Windows SharePoint Services V3 RSS Generator</generator>
    <ttl>60</ttl>
    <image>
      <title>SharePoint and the Office System: Posts</title>
      <url>/blog/_layouts/images/homepage.gif</url>
      <link>http://www.mannsoftware.com/blog/Lists/Posts/AllPosts.aspx</link>
    </image>
    <item>
      <title>HttpContext in Event Receivers</title>
      <link>http://www.mannsoftware.com/blog/Lists/Posts/ViewPost.aspx?ID=16</link>
      <description><![CDATA[<div><b>Body:</b> <div class=ExternalClass55A46131A77F44C596F0C3B4C40071D7><p>A number of people (notably <a href="http://blogs.msdn.com/sowmyancs/archive/2008/03/25/can-we-get-the-httpcontext-in-custom-event-handlers-in-sharepoint.aspx">here</a>, <a href="http://www.entwicklungsgedanken.de/2008/03/27/redirecting-from-newformaspx-to-dispformaspx-after-creating-a-new-item/">here</a> and <a href="http://baigadil.blogspot.com/2008/01/getting-application-context-in.html">here</a>) have written about ways to get a value for HttpContext.Current inside a SharePoint event receiver.  They all correctly note that it only works for synchronous events, which makes perfect sense.  What they don't mention is that it does NOT work for all synchronous events – notably ItemDeleting.  HttpContext.Current is always null in ItemDeleting.</p></div></div>
<div><b>Published:</b> 3/11/2010 2:41 PM</div>
<div><b>BlogTitleForUrl:</b> httpcontext-in-event-receivers</div>
]]></description>
      <author>Dave</author>
      <pubDate>Thu, 11 Mar 2010 19:41:36 GMT</pubDate>
      <guid isPermaLink="true">http://www.mannsoftware.com/blog/Lists/Posts/ViewPost.aspx?ID=16</guid>
    </item>
  </channel>
</rss>