MOSS : How to get the credentails management URL

SingleSignonLocator.GetCredentialEntryUrl Method (Microsoft.SharePoint.Portal) is reserved method. You can verify at link <http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.portal.singlesignonlocator.getcredentialentryurl.aspx> . To Get the Credentials entry URL following resolution is available. Code Snippet ============ using Microsoft.SharePoint.Portal; using Microsoft.SharePoint.Portal.SingleSignon; SpsSsoProvider sso = new SpsSsoProvider(); Application.ApplicationInfo MyApp = null; //Change the “TestingSSO” to your Application Name. Application.GetApplication(“TestingSSO”, ref MyApp); Uri returnValue = sso.GetCredentialManagementURL(MyApp.ApplicationName); writer.Write(returnValue.OriginalString); writer.Write(“<a…

1

Changing MasterPage programmatically for site collection and sub-sites

using System; using System.Collections.Generic; using System.Text; using Microsoft.SharePoint; namespace CustomMaster { public class ChangeMaster : Microsoft.SharePoint.SPFeatureReceiver {   public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPWeb CurrentWeb = properties.Feature.Parent as SPWeb; CurrentWeb.MasterUrl = CurrentWeb.Site.RootWeb.ServerRelativeUrl + “/_catalogs/masterpage/MyDefault.master”; CurrentWeb.CustomMasterUrl = CurrentWeb.Site.RootWeb.ServerRelativeUrl + “/_catalogs/masterpage/custom.master”; CurrentWeb.Update(); foreach (SPWeb subweb in Web.GetSubwebsForCurrentUser()) { ChangeMasterPage(subweb, pstrMasterURL, pstrCustomURL); } CurrentWeb.Dispose(); } void ChangeMasterPage(SPWeb…

1