C
Chris
Hey - sorry for the double post - but i'm really stuck and needing to fix
this quicksmart.
Okay using DataBinder.Eval in a repeater.
My question is this - if the Container.Item value is empy, eg myDownloadFile
is empty,
how can i display different output than if it was populated.
# pretend code
<% if DataBinder.Eval(Container.Item, "myDownloadFile) == String.Empty) { %>
Now download file is available
<% } else { %>
Click here to download <%# DataBinder.Eval(Container.Item, "myDownloadFile")
%>
<% } %>
How can i achieve this ? i believe i could use a terniary but thats well
nasty
<%# DataBinder.Eval(Container.Item, 'Example') != String.Empty ? "download
bleh" : "no download" %>
You help is must appreciated
Thanks
Chris
this quicksmart.
Okay using DataBinder.Eval in a repeater.
My question is this - if the Container.Item value is empy, eg myDownloadFile
is empty,
how can i display different output than if it was populated.
# pretend code
<% if DataBinder.Eval(Container.Item, "myDownloadFile) == String.Empty) { %>
Now download file is available
<% } else { %>
Click here to download <%# DataBinder.Eval(Container.Item, "myDownloadFile")
%>
<% } %>
How can i achieve this ? i believe i could use a terniary but thats well
nasty

<%# DataBinder.Eval(Container.Item, 'Example') != String.Empty ? "download
bleh" : "no download" %>
You help is must appreciated

Thanks
Chris