Bonjour,
Quelqu'un pourrait-il m'expliquer comment implémenter le contrôle OpenFileDialog dans une page aspx ?
Je souhaite, depuis l'une de mes pages, pouvoir rechercher un fichier sur mon disque, le sélectionner puis travailler avec. Pour cela, j'ai besoin du contrôle OpenFileDialog ou de son équivalent en ASP.NET, si il existe...
Mon code :
Dim myDialog As New OpenFileDialog
With myDialog
.Title = "C:\"
.InitialDirectory = "C:\"
.Filter = "All files (*.*)|*.*|All files (*.*)|*.*"
.RestoreDirectory = True
.Multiselect = False
.ShowDialog()
End With
Erreur :
It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application
Merci pour votre aide.