Monday 30 November 2015

How to open window dialog using javascript in asp.net

here is the code to open 1.       Open folders dialog


HTML Code:

  <div style="float: right; text-align: right; padding-right: 13px;">
        <a href="#" onclick="return openLocation();">Click me</a>
        <br />
        <input type="text" id="lblFolderPath" style="visibility: hidden" value="<%="file://"+Server.MachineName+"/"+pathToFolder.Replace("\\","/") %>" />
    </div>


Js code
function openLocation() {
            var pathFolder = $("#lblFolderPath").val();
            window.location = pathFolder;
            return false;

        }

No comments:

Post a Comment

Contact Us:

Email:

Vinodkumar434@gmail.com,
vinodtechnosoft@gmail.com

Skype Name:

vinodtechnosoft