expandata.net Class Library
DNFileBE Class
See Also  Example  Members
Collapse All Language:    C#     VB.NET
Provides instance methods for saving a single file in the collection of files contained in the request object in a file upload.

Namespace: expandata.net
Assembly: expandata.net.dll

Syntax

C#
public class DNFileBE

VB.NET
dim dNFileBE AS new DNFileBE()

Remarks

DNFileBE class provides methods and properties to save a file to a disk folder as well as to a record in the database table. It is designed to work with a variety of databases including Oracle, MA Access and MS SQL Server.

How to upload to a database is described here.


Example

C# Copy Code


// Create a new DNUpFilesBE object
DNUpFilesBE dNUpFilesBE = new DNUpFilesBE();

// ProcessRequest
dNUpFilesBE.ProcessRequest(Request);

// Get first file from collection
DNFileBE dNFileBE = dNUpFilesBE.Files["file0"];

// Save
dNFileBE.Save();


VB.NET Copy Code


'// Create a new DNUpFilesBE object
dim dNUpFilesBE as new  DNUpFilesBE()

'// ProcessRequest
dNUpFilesBE.ProcessRequest(Request)

'// Get first file from collection
dim dNFileBE as DNFileBE = dNUpFilesBE.Files("file0")

'// Save
dNFileBE.Save()

See Also
 
Send comments about this topic to expandata.net Inc.


Copyright © 2007 expandata Inc. All rights reserved.