如何在asp.net中编写此代码 [英] How to write this code in asp.net
本文介绍了如何在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.
这篇关于如何在asp.net中编写此代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文