If you push the limits of what you can easily handle with inline code, you can always write a function. Then you can do something like:
<asp:Label ID="lblOne" runat="server" Text= '<%# EmitSomeText(Eval("name"), Eval("StatusId"), Eval("assignfilename")) %>' />
This allows you to break down a complex expression into any number of lines, which should be, which can be a little less inconvenient. You can use the function in CodeBehind or any other class.
If you bind to a class that you have access to, you can add the readonly property. Then you can do something like Eval ("MyNewProperty").
I use this to display formatting that I need to reuse. For example, Customer.CustomerFullName can return a surname, first separated by a comma (it is wise to handle situations when one or the other or both are missing), plus an optional title, because my clients may be medical workers, and some of them have doctors and doctors.
source share