logo
Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joey  
#1 Posted : Thursday, July 14, 2016 3:43:44 PM(UTC)
Joey

Rank: Administration

Reputation:

Groups: Moderators, Administration, Member
Joined: 7/16/2009(UTC)
Posts: 30
Man
Netherlands
Location: Groesbeek

Thanks: 1 times
If you have a form with a Sienn file upload and it is a required field, the following code can be used.

Code:
Select FormId
    Case 4
        Dim FLBT As String = "FLBT10"
        Dim fileUpload As System.Web.UI.HtmlControls.HtmlInputFile = Nothing
        Pbw.Assign_Control(MyForm, FLBT, fileUpload)
        
        If fileUpload.PostedFile.ContentLength = 0 Then
            Return "No file was uploaded."
        End If
End Select

Wanna join the discussion?! Login to your Sienn Forum forum account. New Registrations are disabled.

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.