Manual Upload

Last post 01-12-2010, 10:43 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  01-12-2010, 2:20 PM 58129

    Manual Upload

    Dear Support
     
    I've using the Ajax Uploader tool so far and it's being great.
    I've found an issue and need to figure it out urgently.
     
    I have a web user control that is being generated dinamically on my web page.
     
    The Onclik attribute is being added on the Page_PreRender method as follows:
     
    SubmitButton.Attributes.Add("onclick", "return submitbutton_click('" + SubmitButton.ClientID + "','" + Uploader.ClientID + "')");
     
    What I need to perform is that I press the Submit button and the selection of a file not to be mandatory.
     
    The problem is that the Uploader_FileUploaded(object sender, UploaderEventArgs args) method is not being fired when I don't browse a file.
     
    Is there a way to fire the Uploader_FileUploaded throug the C# codebehind or triggered the upload (even if there's no a file selected) though the javascript code?
     
    Thanks in advance
     
    Roniel
  •  01-12-2010, 10:43 PM 58131 in reply to 58129

    Re: Manual Upload

    Roniel,
     
    I suggest you use UploadAttachments control,
     
    and in the Button_Click event , check the controlid.Items collection.
     
    Regards,
    Terry
     
View as RSS news feed in XML