Query to get Lock Site Collection in SHarepoint 2007.
BitFlags-131072 For Read Only Site COllection
BitFlags-1 Adding Content Prevented
BitFlags-0 for None
BitFlags-3 for No Access
SELECT dbo.Webs.SiteID as SiteID,dbo.Webs.Id AS WebGuid,
dbo.Webs.Title AS WebTitle,
dbo.Webs.FullUrl AS WebUrl
FROM dbo.Webs INNER JOIN
dbo.Sites ON dbo.Webs.SiteId = dbo.Sites.Id AND dbo.Sites.BitFlags = 131072
AND dbo.Webs.ParentWebId is null
Monday, February 20, 2012
Wednesday, February 15, 2012
Tuesday, February 7, 2012
http://wcftutorial.net/Difference-between-WCF-and-Webservice.aspx
End Point
Bindings and Behavior
Contracts and Service host
Message and Channel
WCF client and Metadata
http://www.dotnetcurry.com/ShowArticle.aspx?ID=766
http://learn2expert.net/DotNetInterview/COM/COM.aspx
End Point
Bindings and Behavior
Contracts and Service host
Message and Channel
WCF client and Metadata
http://www.dotnetcurry.com/ShowArticle.aspx?ID=766
http://learn2expert.net/DotNetInterview/COM/COM.aspx
New Folders in Sharepoint 2010 14 Hive:
New folders available in SharePoint Hive folder are,
Policy
UserCode
WebClients
WebServices
Policy
UserCode
WebClients
WebServices
Sharepoint 2010 Alerts
By default alerts can be send only through e-mail. But we can change that default setting by using the new DeliveryChannels Property of SPAlert class. This DeliveryChannels property, specifies the delivery method of the alert.
The following snippet used to set the SMS delivery method to the Alert.
oAlert.DeliveryChannels = SPAlertDeliveryChannels.Sms;
SPAlertDeliveryChannels is the enumerated member, which specifies the method of delivering alerts.
Email-Delivery as E-mail
Sms-Delivery as SMS Message
The following example code used to update the sms delivery method to all the alerts for every user available in Current website.
SPWeb oWebsite = SPContext.Current.Web;
SPUserCollection collUsers = oWebsite.Users;
foreach (SPUser oUser in collUsers)
{
SPAlertCollection collAlerts = oUser.Alerts;
foreach (SPAlert oAlert in collAlerts)
{
oAlert.DeliveryChannels = SPAlertDeliveryChannels.Sms;
oAlert.Update();
}
}
Enjoi...
The following snippet used to set the SMS delivery method to the Alert.
oAlert.DeliveryChannels = SPAlertDeliveryChannels.Sms;
SPAlertDeliveryChannels is the enumerated member, which specifies the method of delivering alerts.
Email-Delivery as E-mail
Sms-Delivery as SMS Message
The following example code used to update the sms delivery method to all the alerts for every user available in Current website.
SPWeb oWebsite = SPContext.Current.Web;
SPUserCollection collUsers = oWebsite.Users;
foreach (SPUser oUser in collUsers)
{
SPAlertCollection collAlerts = oUser.Alerts;
foreach (SPAlert oAlert in collAlerts)
{
oAlert.DeliveryChannels = SPAlertDeliveryChannels.Sms;
oAlert.Update();
}
}
Enjoi...
Subscribe to:
Posts (Atom)