Re: ASP.NET Data Controls hi H2o,
Thanks for trying to help but I've tried it and it doesn't work when the value of the field is NULL
I get this error:
Conversion from type 'DBNull' to type 'String' is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.
I think I should have to construct something like IF (thedataitem is DBNull) THEN do action ELSE IF (the dataitem is empty) THEN do action ELSE do other action... but I have no idea how to do that inside a repeater using IIF...
__________________ Venkat knowledge is Power |