Skip to content

Instantly share code, notes, and snippets.

@gillissm
Created February 10, 2016 21:15
Show Gist options
  • Save gillissm/13d6caf2b0ce344e4745 to your computer and use it in GitHub Desktop.
Save gillissm/13d6caf2b0ce344e4745 to your computer and use it in GitHub Desktop.
Execute method for the Contact Facet Dialog XAML code behind
public void Execute(XElement element, string name, UrlString parameters, string value)
{
Assert.ArgumentNotNull((object)element, "element");
Assert.ArgumentNotNull((object)name, "name");
Assert.ArgumentNotNull((object)parameters, "parameters");
Assert.ArgumentNotNull((object)value, "value");
UrlString str = new UrlString("/sitecore/shell/~/xaml/ContactFacetDialog.aspx?ti=Contact Facet Picker&txt=Select a contact facet property&spk="+value);
SheerResponse.ShowModalDialog(str.ToString(), true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment