Netferrets Online Blog, Internet Related Programming Solutions, Created in C# .net, VB .net, MS SQL Server Javascript, HTML and CSS. Proving sample solutions to problems found when creating web application solutions.
Showing posts with label boolean. Show all posts
Showing posts with label boolean. Show all posts
Saturday, 15 June 2013
Evaluate with conditions
if you want to test against a condition and two possible results and return boolean when databinding then this is quite useful. You can also use this is your code behind which makes it look less messy i.e. with anonymous types
<%# Eval("yourfield") == null ? String.Empty : Eval("yourfield")%>
Subscribe to:
Posts (Atom)