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

    How to refresh the logopath from the controller method

    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

    try this code

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

    Name : Dotnet Developer-2015
    Email Id :

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

  • Sign In to post your comments