aspnet-devexpress-dot-web-052cbaa0.md
Contains settings that allow you to connect the Upload Control to Azure.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public class UploadControlAzureSettings :
UploadControlUploadStorageSettingsBase
Public Class UploadControlAzureSettings
Inherits UploadControlUploadStorageSettingsBase
The following members return UploadControlAzureSettings objects:
| Library | Related API Members |
|---|---|
| ASP.NET Web Forms Controls | ASPxHtmlEditorUploadSettingsBase.AzureSettings |
| ASPxUploadControl.AzureSettings | |
| ASP.NET MVC Extensions | HtmlEditorFileSaveSettings.AzureSettings |
| UploadControlBinderSettings.AzureSettings | |
| UploadControlSettings.AzureSettings |
Follow the steps below to connect the Upload Control to Azure:
Azure.The following example demonstrates how to connect the Upload Control to Azure:
void Application_Start(object sender, EventArgs e) {
DevExpress.Web.AccountManager.RegisterAzure("YourAzureAccount", "YourStorageName", "YourAccessKey");
}
<dx:ASPxUploadControl ID="UploadControl" runat="server" UploadStorage="Azure" ShowUploadButton="True" >
<AzureSettings AccountName="YourAzureAccount" ContainerName="YourContainerName" />
</dx:ASPxUploadControl>
Once the Upload Control uploads a file to cloud storage, you can use the key name of this file to access it. To obtain a file key name, use the FileNameInStorage property of an UploadedFile object.
Object StateManager PropertiesBase UploadControlUploadStorageSettingsBase UploadControlAzureSettings
See Also
Azure Storage client libraries for .NET
Azure Blob Storage client library for .NET
Cloud Storage Account Management