Asp.net MVC如何放置默认男性&女员工图标? [英] Asp.net MVC HOW to put default male & female employee icon ?

查看:75
本文介绍了Asp.net MVC如何放置默认男性&女员工图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

asp mvc c#



如果该员工没有可用的照片,我想要设置默认员工和女性员工图标,而不会降低网络性能(负载)速度)?



我尝试了什么:



EX:我可以使用像fa-user类这样的东西?不加载图像?

asp mvc c#

I want to put a default employee and female employee icons if there is no available photo for that employee , without reduces the web performance(load speed) ?

What I have tried:

EX: I can use something like fa-user class ?? not load images?

推荐答案

创建员工记录时将默认值插入数据库。

我?我将保留一个包含默认值的单独图像表,并使用外键通过JOIN访问图像数据。



但是...使用两张图片是个好主意吗?如果LGBT员工参与,它很容易被视为性别歧视者或性别歧视者。我自己坚持使用一个单独的无图像可用标记,没有性别/性别关联。
Insert the default into the DB when you create the employee record.
Me? I'd keep a separate table of images which includes the default, and use a foreign key to access the image data via a JOIN.

But ... is it a good idea to use two images? It could very easily be seen as sexist, or genderist if LGBT employees are involved. I'd stick to one single "no image available" marker myself, without a sex / gender association.


这篇关于Asp.net MVC如何放置默认男性&女员工图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆