Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコードがあります。
「メール」列がデータセットに追加されていない場合、エラーが発生します。
列「メール」がデータセットに存在しない場合にデフォルト値を取得するには、どのようにコーディングしますか?
<a href="mailto:<%# DataBinder.Eval(Container.DataItem, "mail") %>
<a href="mailto:<%# DataBinder.Eval(Container.DataItem, "mail") != null ? DataBinder.Eval(Container.DataItem, "mail") : "default@default.com"%>