I'm new to Javascript,
I'm using the Javascript to get the file name from the FileUpload,
Here with my screenshot.
and my code
$('#Q1DocPath').change(function () {
var path = $(this).val();
if (path != '' && path != null) {
var q = path.substring(path.lastIndexOf('\\') + 1);
$('#lblQ1Doc').html('<br/>' + '<p>' + q + '<a class="close"><font color="red">x</font><a>' + '</p>');
}
})
May I ask about How can I do it in ViewState? (Store and Load)
For setting the value
localStorage.setItem('path',q)
For getting the value
localStorage.getItem('path')