In my ASP.NET project, I want to add a facility to my page so that when the user clicks a button, a 'browse file' dialog box directly opens up. After he selects the file in the dialog box, I want to s开发者_如何学Pythonave that image on the server, and update an imagebox based on that selection.
Is there some sort of dynamic 'browse for file' type dialog box that I can use?
You can check this demo.
Article (http://vremenno.net/js/javascript-snippets-plus-new-file-input/) is in Russian, but you can always use Google Translate.
Source code available here: (http://vremenno.net/examples/updated-file-input-styling/UpdatedFileInputStyling.zip)
Sorry for ugly links: this is my first post and I'm not allowed to use more than one link.
精彩评论