I am exploring the possibility of generating asp.net elements dynamically using javascript. Successfully creating html elements on-the-fly looks like this
var _upload = document.createElement("input");
_upload.setAttribute("type", "file");
_upload.setAttribute("ID", "upload" + rownum);
_upload.setAttribute("runat", "server");
_upload.setAttribute("name", "uploads" + rownum);
I have a couple of queries:
Is this method comparable to using the asp.net FileUpload control?
How do I replicate exact asp.net controls in javascript?
Are there any specific functionalities that an asp.net fileupload offers that my custom control above lacks, if any?