English 中文(简体)
如何把锁放在私人内容旁边
原标题:how to put / reference a lock beside a private content

目前,利用Ektron CMS,我正试图设置一个锁。 jpg 旁边有保护的/私人内容,如果该链接被点击,用户需要登录。

我不知道如何开始或继续这样做?

实现这一目标的任何想法或幻灯都将感激。

Thanks, Ron.

最佳回答

内容提要有一个可以研究的原始财产。 在最近(v8.5),我将做如下工作。 后面的法典:

    ContentManager contentManager = new ContentManager();
    ContentCriteria criteria = new ContentCriteria();
    criteria.AddFilter(ContentProperty.FolderId,
                       CriteriaFilterOperator.EqualTo,
                       folderId);

    List<ContentData> list = contentManager.GetList(criteria);
    Listview1.DataSource = list;
    Listview1.DataBind();

如使用发言稿,请说明如下:

    using Ektron.Cms;
    using Ektron.Cms.Common;
    using Ektron.Cms.Framework;

    using Ektron.Cms.Content;
    using Ektron.Cms.Framework.Content;

然后在ASP.NET中。 定时,我将使用标准的伙伴关系。 NET 清单服务器控制

    <asp:listview ID="Listview1" runat="server">
        <ItemTemplate>
            <div>
                <li><img src="<%#Eval("IsPrivate") %>.jpg" /><%#Eval("Title") %></li>
            </div>
        </ItemTemplate>
    </asp:listview>

这使你朝着正确的方向前进。 关于第8.5号框架协议的更多信息,见http://www.ektron.com/Resources/Webinars/Framework-API/“rel=“nofollow”http://www.ektron.com/Resources/Webinars/Framework-API/

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签