Ramon Ortega

Ramon Ortega

  • NA
  • 37
  • 2.2k

How to show user picture when login?

Feb 2 2022 11:26 PM

Hi guys how can i display the user profile picture , when the user login? I am using APS.Net MVC

this is the js code : 

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();
}


Answers (1)