T
Terry Holland
Im writing an application with an ASP.Net (VB.Ney) GUI, Business Layer and DAL.
I need to implement a facility to allow the users to upload files. The only
examples I can find for doing this use the
System.Web.UI.HtmlControls.HtmlInputFile control on a webform to upload the
files. I want to use a webform to allow the user to select a number of
files, have details of the files that need to be uploaded in a collection
that will be passed to the business layer and, when the Upload button is
clicked have the details of all of the files in the collection passed to the
business layer (and then DAL) and have this layer perform the file upload.
The only way I can see to do this is to have the a parameter in the BLL of
type System.Web.UI.HtmlControls.HtmlInputFile which will give the BLL access
to the upload file properties. This doesn't seem 'correct' because that
would require that the BLL needs to have awareness of the GUI implementation
(ie HTML control).
Is there any way I can pass enough information from the GUI to BLL without
the BLL knowing that the GUI is a HTML control
I need to implement a facility to allow the users to upload files. The only
examples I can find for doing this use the
System.Web.UI.HtmlControls.HtmlInputFile control on a webform to upload the
files. I want to use a webform to allow the user to select a number of
files, have details of the files that need to be uploaded in a collection
that will be passed to the business layer and, when the Upload button is
clicked have the details of all of the files in the collection passed to the
business layer (and then DAL) and have this layer perform the file upload.
The only way I can see to do this is to have the a parameter in the BLL of
type System.Web.UI.HtmlControls.HtmlInputFile which will give the BLL access
to the upload file properties. This doesn't seem 'correct' because that
would require that the BLL needs to have awareness of the GUI implementation
(ie HTML control).
Is there any way I can pass enough information from the GUI to BLL without
the BLL knowing that the GUI is a HTML control