Hi guys i have this problem how can I display the picture of the user base on the username when the pictures is in the Network Folder \\10.10.25\\AquariusImages\IdPictures\rortega.jpg
This is the js function
//DTR functions
DTR.init = function () {
user = $("#user").text();
username = $("#username").text();
userIdEmployee = $("#userIdEmployee").text();
if ($('#userGender').text() == "Female") {
$("#imageProfileFemale").show();
$("#imageProfileMale").hide();
}
else {
$("#imageProfileMale").show();
$("#imageProfileFemale").hide();
}
$("#dtrBTN").addClass("active");
$("#eventManagerBTN").removeClass("active");
$("#hrisBTN").removeClass("active");
DTR.SetUserData();
DTR.SetDate();
DTR.GetTransactionLogs();
}
DTR.SetUserData = function () {
$.ajax({
url: "/Modules/FetchUserData",
type: "GET",
data: {
username: username
},
dataType: "json",
success: function (data) {
for (var i in data) {
$('#iDNumber').val(data[i].employeeIdNo);
$('#employeeName').val(data[i].employeeName);
$('#employeePosition').val(data[i].positionName);
$('#employeeDepartment').val(data[i].departmentName);
$('#timeIN').val(data[i].inTimeTransLog);
$('#timeOUT').val(data[i].outTimeTransLog);
}
}
});
}
This part is for the Header.cshtml where the user picture thumbnail is located
@ViewBag.UserGender
@ViewBag.IsApprover
@ViewBag.User
@ViewBag.Username
@ViewBag.IDEmployee




Muhammad Imran AnsariPosted Feb 1, 2022, 5:01 AM