(another) Problem after upgrading a project from 3.5 to 4.0

1
0

Uploading files is disrupted.

The folowing code, that works perfect on 3.5, now is now calling U_Uploaded procedure anymore. The “upload file” dialog appears, I choose file, but nothing else.

private void frmAnalizaPDF_Load(object sender, EventArgs e)
{
u.Uploaded += U_Uploaded;
u.AllowMultipleFiles = false;
u.AllowedFileTypes = “.pdf”;
u.Visible = false;//initial trebuie sa fie true, altfel nu se creaza controlul in browser!!!
cmdUploadPDF.AddClientEventListener(“execute”, “this.getParent().u.upload()”);//works on any browser
}

private void U_Uploaded(object sender, UploadedEventArgs e)
{

….

}

  • You must to post comments
0
0

Works perfectly fine for me.

  • You must to post comments
0
0

Hi Adrian,

are you using an invisible Upload control and triggering it from a button or what is cmdUploadPDF in your code?
Please provide a test case that shows what you are trying.

TIA
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.