Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
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
Posted
Updated 8-Jun-11 23:16pm
v3
Comments
Sergey Alexandrovich Kryukov 9-Jun-11 5:20am    
What is the intended effect? What's "news_summary"? "rs"?
--SA

1 solution

Hi, Please try this one.

<%len(rs("news_summary")) > 200 ? "ifResult" : "elseresult"%>


"ifResult" and "elseresult" will be your desired results.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900