sharepoint 2010安全 [英] sharepoint 2010 Security

查看:82
本文介绍了sharepoint 2010安全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个sharepoint 2010网站,希望在两个日期(每月的1和6)之间进行访问.我知道可以使用计时器作业创建解决方案,但我是c#的初学者. 有没有人有C#代码可以做到这一点?

Hi,

I have a sharepoint 2010 site and I want it to be accessed between two dates (the 1 and 6 of each month).I know that the solution can be created with timer job but i''m beginner in c#.
is there anyone have a c# code to do that?

thanks before.

推荐答案

计时器作业无法满足此要求. SharePoint网站是ASP.NET网站,您不能在某些日子限制对网站本身的访问.无论日期是什么,IIS都会处理该请求.

最简单的解决方案可能是将Webpart或服务器控件添加到默认页面,该默认页面在网站无法访问期间触发重定向.还有其他更复杂的方法,例如创建自定义HTTPModule或删除对网站的访问,但实际上并不是真的要以这种方式使用SharePoint和ASP.NET应用程序.
A timer job will not help for this requirement. A SharePoint site is an ASP.NET site and you can''t limit access to the site itself on certain days. IIS will server the request no matter what the date is.

The simplest solution may be to add a webpart, or server control, to the default page that triggers a redirect during the periods the site is not accessible. There are other more complex ways, such as creating a custom HTTPModule or removing access to the site, but really SharePoint and ASP.NET applications were not really meant to be used this way.


这篇关于sharepoint 2010安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆