惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V2EX - 技术
V2EX - 技术
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Latest news
Latest news
T
The Exploit Database - CXSecurity.com
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
L
Lohrmann on Cybersecurity
aimingoo的专栏
aimingoo的专栏
B
Blog
T
Threat Research - Cisco Blogs
罗磊的独立博客
Application and Cybersecurity Blog
Application and Cybersecurity Blog
P
Proofpoint News Feed
P
Palo Alto Networks Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
博客园 - 司徒正美
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
T
Tor Project blog
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
Recorded Future
Recorded Future
D
DataBreaches.Net
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
B
Blog RSS Feed
Scott Helme
Scott Helme
P
Proofpoint News Feed
V
Vulnerabilities – Threatpost
A
Arctic Wolf
Help Net Security
Help Net Security
L
LINUX DO - 最新话题
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Vercel News
Vercel News
AWS News Blog
AWS News Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Schneier on Security
Hacker News: Ask HN
Hacker News: Ask HN
N
Netflix TechBlog - Medium
L
LangChain Blog
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
M
MIT News - Artificial intelligence
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
W
WeLiveSecurity

博客园 - bluehat

如果你的sharepoint 2013很慢... Sharepoint 2010 Timer Job 自定义开发的几个注意事项 2011你教会我的那些事儿 SharePoint Server 2010 LDAP Form 验证最容易出错的几点 CRM 客户端 SharePoint 2010 中如何彻底删除用户 SharePoint 2007/2010 的"SPGridView "控件常见的两个问题 Sharepoint 2010 中配置同步连接报错. - bluehat Exchange 2007 内存使用问题 不是黄山,胜似黄山--端午节之旅 心情不错 纠结 炎炎夏日,无心... 我想做一个有故事的人 无意发现Win 7 的时钟小秘密 小兽... 游陈阁老故乡 I am lost [ZZ]5 Paths to Happiness
【sharepoint】SPEventReceiverStatus.CancelWithRedirectUrl 出错的请看这里
bluehat · 2011-12-19 · via 博客园 - bluehat

如果你使用sharepoint 里的eventhandler,并在里面做了页面跳转,但是发现跳转失败的话,请注意,一定要先设置RedirectUrl,再设置Status。

三行代码的顺序一定不能错!

MSDN上都是错的,坑爹呀~~~~~

View Code

 properties.Cancel = true;
 properties.RedirectUrl = "/_layouts/CustomErrorPage/SiteCreationError.aspx";
 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl;

posted @ 2011-12-19 23:22  bluehat  阅读(466)  评论(0)    收藏  举报

刷新页面返回顶部