Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for NULL or 0 at the same time
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01329868
Message ID:
01329992
Views:
18
This message has been marked as the solution to the initial question of the thread.
>No, it didn't work. I tried all possible combinations yesterday I could think of and was not able to make it.

I think you may be expecting to be able to embed too much code into the aspx (not saying it's not possible, but that I would try a different approach). I would just create a method in the code-behind file that accepts an object parameter and returns a string. Then from within the aspx file, call the method and pass in the eval:
// In ASPX file, something like this:
<%= this.FormatField(Eval("Field")) %>
In your codebehind just convert it back into it's original type or to a string and return back whatever you'd like, ex. ToString()
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform