If value is null put an empty string on razor template?

If sounds like you just want:

@(UIManager.Member == null ? "" : UIManager.Member.Email)

Note the locations of the brackets is critical; with razor, @(....) defines an explicit range to the code – hence anything outside the brackets is treated as markup (not code).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)