回复 1F oimotis 的帖子
按閣下方法:
"还有一种方式就是我现在的做法.比较麻烦,我现在的做法是:在源码中,把datetime.tostring()这种代码修改为atetime.tostring("yyyy-MM-dd HHss"); 改动非常之多.. "
在 forrumindex.aspx 遇到如下問題:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1502: The best overloaded method match for 'string.ToString(System.IFormatProvider)' has some invalid arguments
Source Error:
Line 354: templateBuilder.Append(" <td>\r\n");
Line 355: templateBuilder.Append(" <a href=\"userinfo.aspx?userid=" + pm.Msgfromid.ToString().Trim() + "\" target=\"_blank\">" + pm.Msgfrom.ToString().Trim() + "</a>\r\n");
Line 356: templateBuilder.Append(" <span class=\"fontfamily\">" + pm.Postdatetime.ToString("yyyy-MM-dd HHmmss").Trim() + "</span>\r\n");
Line 357: templateBuilder.Append(" </td>\r\n");
Line 358: templateBuilder.Append(" </tr>\r\n");
請問怎麼辦?