Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have FBA on SP2010.

I need a search box on http://mysite/_layouts/FBA/Management/UsersDisp.aspx

It's very cumbersome to find one particular user in 1000+ database.

Can someone please help me out on this?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You need to use you own masterpage in the MySites for this, which has the search box on it. This could be done using featurestapling and a featurereceiver. Just make a copy of the default myysite.master and deploy it in your own feature, then set it as the site's master using a featurereceiver:

Site scoped feature:

public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
  if (properties == null)
  {
    throw new ArgumentNullException("properties");
  }
  using(var site= (SPSite) properties.Feature.Parent)
  {
    site.RootWeb.CustomMasterUrl = web.CustomMasterUrl.Replace("mysite.master", "custom.master");
  }
}
share|improve this answer
    
thanks! will apply your sol. –  saumilm May 24 '11 at 13:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.