I am attempting to create asp.net elements on the fly using javascript. I can successfully create html elements on the fly like so
var _upload = document.createElement("input");
_upload.setAttribute("type", "file");
_upload.setAttribute("ID", "upload" + rownum);
_upload.setAttribute("runat", "server");
_upload.setAttribute("name", "uploads" + rownum);
A few questions:
Is this the equivalent to the asp.net FileUpload control?
How can I create the exact asp.net controls in javascript?
What can an asp.net fileupload do that my control I created above cannot do if anything?