I have dragged and dropped the following items on to a blank page:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadUpload ID="ruFile" runat="server" ControlObjectsVisibility="None" MaxFileInputsCount="1" Skin="Default" />
<telerik:RadProgressArea ID="RadProgressArea1" runat="server" />
<telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
<
asp:Button ID="btnNext" runat="server" Text="Next" />
--------------------- On clicking "Next", this code is executed :
Public Sub InsertToSQL(ByVal inFile As UploadedFile)
Dim Filedata As Byte()
Dim Filesize As Integer
Filesize = inFile.InputStream.Length
inFile.InputStream.Read(Filedata, 0, Filesize)
Dim db As Database = DatabaseFactory.CreateDatabase("mySQLString")
Dim cmd As DbCommand = db.GetStoredProcCommand("spInsertDoc")
cmd.CommandTimeout = 60
db.AddParameter(cmd,
"@filedata", SqlDbType.Binary,Filedata.Length, ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), Nothing, DataRowVersion.Current, Filedata)
db.ExecuteNonQuery(cmd)
End Sub