c# - asp:FileUpload set filename using jquery -


i'm using <asp:fileupload> in modal pop-up form contains detail of datatable row.

i need set filename , path, in cell of datatable, in fileupload control when click on detail.

i'm using instruction:

$('#<%=mailtemplateupload.clientid%>').attr("value", template); 

but it's not working.

p.s.: template string containing filepath

i understand looking jquery selector fileupload?

you should

<asp:fileupload id="myfileupload"> 

and selector can

$("input[id*=myfileupload]") 

then can surely add attribute want on it.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -