OpenFileDialog..,,,ASP.net
-
Hi... I have some questions about ASP.net: 1> My example has a file field control and an Image control, and I want to show the bitmap on the Image control after choosing the filepath of the bitmap through the File Field control. please give me some advices... 2> I want my web-page getting a Button and a Listbox. The scenario is like following : step 1-I click the Button and the OpenFileDialog show. step 2-After chosen by me, the file is added into the ListBox with its path-name. step 3-I can select multi files by repeating the step 1 & 2. As a result, the ListBox shows a lot of path-names. However, I always think of selecting many file in the OpenFileDialog at the same time. Up to now, I haven't solved it. Help me,please...Thanks a lot
-
Hi... I have some questions about ASP.net: 1> My example has a file field control and an Image control, and I want to show the bitmap on the Image control after choosing the filepath of the bitmap through the File Field control. please give me some advices... 2> I want my web-page getting a Button and a Listbox. The scenario is like following : step 1-I click the Button and the OpenFileDialog show. step 2-After chosen by me, the file is added into the ListBox with its path-name. step 3-I can select multi files by repeating the step 1 & 2. As a result, the ListBox shows a lot of path-names. However, I always think of selecting many file in the OpenFileDialog at the same time. Up to now, I haven't solved it. Help me,please...Thanks a lot
Well, you cannot really access the computer on the client side (out of security reasons), so showing the contents of the client side pc, in the same way as OpenFileDialog does is not possible. However, if you know your client is using IE and gives your site certain security rights, it might be possible to use the FileSystem (I'm not sure anymore about the name) object in javascript. Then in js you can build something like the OpenFileDialog. But once again, this is only IE compatible, and I'm not sure if this will really work.
-
Well, you cannot really access the computer on the client side (out of security reasons), so showing the contents of the client side pc, in the same way as OpenFileDialog does is not possible. However, if you know your client is using IE and gives your site certain security rights, it might be possible to use the FileSystem (I'm not sure anymore about the name) object in javascript. Then in js you can build something like the OpenFileDialog. But once again, this is only IE compatible, and I'm not sure if this will really work.