dragonrachel - 2012/9/5 14:08:00
请教xiyou 我网站文章想在条目后面加上点击量(如下图),不知道要怎么弄哦.
目前PA系统只能显示日期.
我用的是商业版,付过费的. 域名
www.eastspacelight.com
xiyou - 2012/9/5 14:56:00
您好,2.1的文章列表需要修改/usercontrtol/article.ascx
在<%#DataBinder.Eval(Container.DataItem,"thedate","{0:yyyy-MM-dd}")%>后面加 点击:<%#DataBinder.Eval(Container.DataItem,"clicks")%>
自己根据实际效果修改一下。
dragonrachel - 2012/9/5 17:09:00
谢谢,晚上我试试.:D
dragonrachel - 2012/9/5 21:26:00
老大,试了,出现了这样的错误
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'.
dragonrachel - 2012/9/7 14:41:00
XIYOU不理我了:(
xiyou - 2012/9/7 15:16:00
之前的版本非默认显示字段没有放在程序中读取,所以调用的话会提示字段不存在。
去下最新商业版本,用bin,lanmu,usercontrol,incs,master目录覆盖一下,然后再按上面方法修改文件。
dragonrachel - 2012/9/7 15:52:00
这样啊,好的,我试试。:Z