如何在asp.net中编写此代码
问题描述:
这是经典的asp代码:
<%if len(rs("news_summary"))> 200 then%>
我想用asp.net源代码编写此代码,不支持len函数,我需要代码.
我用Eval函数代替rs
请任何人可以帮助我.
在此先感谢
This is a classic asp code:
<%if len(rs("news_summary"))>200 then%>
I want to write this code in asp.net source code, the len function is not supported i need the code.
I use Eval function in place of rs
please any one can help me.
Thanks in advance
答
请尝试一下.
Hi, Please try this one.
<%len(rs("news_summary")) > 200 ? "ifResult" : "elseresult"%>
"ifResult"和"elseresult"将是您想要的结果.
"ifResult" and "elseresult" will be your desired results.