Problem with start radupload

Thread is closed for posting
2 posts, 0 answers
  1. Fabio Cirillo
    Fabio Cirillo avatar
    181 posts
    Member since:
    Jan 2010

    Posted 29 Nov 2012 Link to this post

    i've into web page a in my vb code:

    Protected Sub Imgbtnesci_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles Imgbtnesci.Click
        Me.ClientScript.RegisterStartupScript(Me.GetType, "", "Close_and_load();", True)
    End Sub
    Protected Sub CustomValidator1_ServerValidate(source As Object, e As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate
        e.IsValid = (RadUpload1.InvalidFiles.Count = 0)
    End Sub
    Protected _image As String
    Private Sub Imgbtnupload_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles Imgbtnupload.Click
        If RadUpload1.UploadedFiles.Count > 0 Then
            _image = "/public/image_profile/" & RadUpload1.UploadedFiles.Item(0).FileName
            Label2.Text = "/public/image_profile/" & RadUpload1.UploadedFiles.Item(0).FileName
            Label2.Visible = True
        End If
    End Sub
    function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow) oWindow = window.radWindow;
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
        return oWindow;
    function Close_and_load() {

    when i click on button imgbtnesci, the upload is also, however you need to start only if I click on the button Imgbtnload...
    how do it?

  2. Plamen
    Plamen avatar
    2926 posts

    Posted 04 Dec 2012 Link to this post


    In such cases we recommend using RadAsyncUpload where the PostbackTriggers controls whether the files will be uploaded or not by some buttons click event.

    Hope this will be helpful.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top