产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

请教xiyou 我网站文章想在条目后面加上点击量,不知道要怎么弄哦. [复制链接]

1#
请教xiyou 我网站文章想在条目后面加上点击量(如下图),不知道要怎么弄哦.
目前PA系统只能显示日期.

我用的是商业版,付过费的. 域名 www.eastspacelight.com
分享 转发
提供android手机刷机服务.
TOP
2#

您好,2.1的文章列表需要修改/usercontrtol/article.ascx

在<%#DataBinder.Eval(Container.DataItem,"thedate","{0:yyyy-MM-dd}")%>后面加  点击:<%#DataBinder.Eval(Container.DataItem,"clicks")%>

自己根据实际效果修改一下。
TOP
3#

谢谢,晚上我试试.
提供android手机刷机服务.
TOP
4#

老大,试了,出现了这样的错误

Server Error in '/' Application.
--------------------------------------------------------------------------------

DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'clicks'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'clicks'.
提供android手机刷机服务.
TOP
5#

XIYOU不理我了
提供android手机刷机服务.
TOP
6#

之前的版本非默认显示字段没有放在程序中读取,所以调用的话会提示字段不存在。

去下最新商业版本,用bin,lanmu,usercontrol,incs,master目录覆盖一下,然后再按上面方法修改文件。
TOP
7#

这样啊,好的,我试试。
提供android手机刷机服务.
TOP
发新话题 回复该主题