You must Sign In to post a response.
  • Category: ASP.Net MVC

    How to refresh the logopath from the controller method

    Hi
    I am having a company controller with add/edit actions. while updating the company logo it can automatically change the layout logo image path without any refresh. how can i fix this one?
  • #770029
    Hi

    try this code


    function uploadComplete(sender, args) {
    var imgDisplay = $get("imgDisplay");
    imgDisplay.src = "images/loader.gif";
    imgDisplay.style.cssText = "";
    var img = new Image();
    img.onload = function () {
    imgDisplay.style.cssText = "height:100px;width:100px";
    imgDisplay.src = img.src;
    };
    img.src = "<%=ResolveUrl(UploadFolderPath) %>" + args.get_fileName();
    }

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.


  • Sign In to post your comments