Can I use a web form as a model dialog box?
-
Hai all, I have two web forms. From the first form I want to call the second form. That second form contains a 'file field' and a button. With the file field I can select a file from client computer and when I click the button, I want to post the file to the server at the same time the form will closed and return the file name to the first form Is it possible? Thanks for your valuable help Thomas
-
Hai all, I have two web forms. From the first form I want to call the second form. That second form contains a 'file field' and a button. With the file field I can select a file from client computer and when I click the button, I want to post the file to the server at the same time the form will closed and return the file name to the first form Is it possible? Thanks for your valuable help Thomas
-
what are you going to do at the first form? the name of the upload file ,after the first form get the name,what to do? may be ,you may not use two form to solve your question. Study...
there is a way you can get what you want. for example: there are tow forms. formFirst and formSecond 1)there is a hidden web controls at the firstForm,named hdValue; 2)at the formSecond ,you upload a file to server ,and you get the name of the upload file. ex: FileName. when the upload click is executing,you can set the value to hdValue; Javascript and code both can do it.. good luck english poor ... :) Study...
-
there is a way you can get what you want. for example: there are tow forms. formFirst and formSecond 1)there is a hidden web controls at the firstForm,named hdValue; 2)at the formSecond ,you upload a file to server ,and you get the name of the upload file. ex: FileName. when the upload click is executing,you can set the value to hdValue; Javascript and code both can do it.. good luck english poor ... :) Study...
Sir/Madam Thanks for your reply. i have two questions. 1. Is there any javascript function to upload a file? 2. Is there any javascript function to pick a file name from a string containing file path and file name? Thanks Thomas