Exemplo n.º 1
0
 public override void Initialize(Rendering rendering)
 {
     base.Initialize(rendering);
     if (string.IsNullOrEmpty(UrlToCommentOn))
     {
         UrlToCommentOn = LinkManager.GetAbsoluteItemUrl(DataSourceItem);
     }
 }
Exemplo n.º 2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (string.IsNullOrEmpty(UrlToLike))
            {
                UrlToLike = LinkManager.GetAbsoluteItemUrl(DataSourceItem);
            }
        }