Hello,
i want to uplaod file with radasyncupload....and i want get name file uploaded too. Then my code is:
and start upload with code behind:
If i click on button "Imgbtncarica" the file in not uploaded, because i go to see into folder and there's not the file....Why?
Please help me, thank you
i want to uplaod file with radasyncupload....and i want get name file uploaded too. Then my code is:
<
telerik:RadAsyncUpload
ID
=
"RadAsyncUpload1"
runat
=
"server"
AllowedFileExtensions
=
"jpg,jpeg,png,gif"
Font-Names
=
"Verdana"
ManualUpload
=
"True"
MaxFileInputsCount
=
"1"
MaxFileSize
=
"3000000"
Skin
=
"Sunset"
Width
=
"343px"
>
<
Localization
Select
=
"Cerca"
/>
</
telerik:RadAsyncUpload
>
function startManualUpload() {
var upload = $find('<%=RadAsyncUpload1.ClientID%>');
upload.startUpload();
}
and start upload with code behind:
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
RadAsyncUpload1.TargetFolder = "~/Image/image_utenti/" & Session.Item("idutente")
End If
End Sub
Protected Sub Imgbtncarica_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles Imgbtncarica.Click
ScriptManager.RegisterStartupScript(Page, Me.GetType, "Upload", "startManualUpload();", True)
ViewState("DirImage") = ViewState("RemoteFolder") & RadAsyncUpload1.UploadedFiles.Item(0).FileName
update_image(Session.Item("idutente"), ViewState("DirImage"))
End Sub
If i click on button "Imgbtncarica" the file in not uploaded, because i go to see into folder and there's not the file....Why?
Please help me, thank you