我用如下绑定数据库content字段:
<%# createWeb.common.cs.sysLogic.funShortTxt(DataBinder.Eval(Container, "DataItem.content"),100) %>但是显示的只是100个文字以后的其它文字,没有体现前100个文字,请问为什么?
各位C#高手,可否给予其它高见????
<%# createWeb.common.cs.sysLogic.funShortTxt(DataBinder.Eval(Container, "DataItem.content"),100) %>但是显示的只是100个文字以后的其它文字,没有体现前100个文字,请问为什么?
各位C#高手,可否给予其它高见????
如果100修改成0的话,那就是全部显示,请问有什么高见?
createWeb.common.cs.sysLogic.funShortTxt()这个函数是谁写的嘛?
把这个函数好好读一下,错误的地方修改不就可以了!
不行就用String.SubString(0,100);
你说的funShortTxt(0,100)与String.SubString(0,100)都不能用,都会出错.
因为不但要能实现显示前100个文字,还要进行数据绑定形式要与下面的代码相符:
<%# createWeb.common.cs.sysLogic.funShortTxt(DataBinder.Eval(Container, "DataItem.content"),100) %>
请问C#高手还有什么方法??