Tuesday, July 12, 2005 10:06 AM Jan Tielens

See you @ PDC ’05!

I’ve just registered for the “Microsoft Professional Developers Conference 2005, where the next waves of Microsoft Windows "Longhorn" features and Microsoft Office System developer capabilities will be unveiled”! I’m looking forward to see all the new IW stuff (like the new versions of SharePoint and Office) go public. Keep an eye on the Conference Tracks and Sessions page for the latest news. The PDC is also the place-to-be to finally meet all the geeks, bloggers and fellow MVP’s I know only from the online world. So, see you @ PDC ’05!

Comments

# re: See you @ PDC ’05!

Thursday, August 04, 2005 3:50 AM by Raphael Londner

So I know that doesn't have anything to do with your post, but I found out that your MyAlerts webpart suffers the same issues as the What's New webpart (re: http://weblogs.asp.net/jan/archive/2004/04/26/120508.aspx ) if the current user doesn't have access to some WSS lists and clicks on the "Add All" link.

Here is the updated code (assuming you're using the same UserCanViewListItems method):

private void addAll_Click(object sender, EventArgs e)
{
SPWeb web = SPControl.GetContextWeb(Context);
web.Site.CatchAccessDeniedException = false;

foreach(SPList list in web.Lists)
{
if(UserCanViewListItems(list))
{
if(sender == addAllDaily)
web.CurrentUser.Alerts.Add(list,SPEventType.All, SPAlertFrequency.Daily);
else if(sender == addAllImmediate)
web.CurrentUser.Alerts.Add(list,SPEventType.All, SPAlertFrequency.Immediate);
}
}