(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

Hi Frank. You are correct, I am using an invisible Upload control (initial visible to be loaded in browser, made invisible after) and triggering it from a button.
After I installed Visual Studio 2026 and Wisej4 extension, it’s working everything. Strange that the same code build and run from VS 2022 trigger the upload control but it’s never calling the uploaded event. Bu again, my VS2022 environment has glitches with Wisej 4 (wisej 3.5 works perfect).

  • You must to post comments
0
0

Works perfectly fine for me.

  • Adrian Zagar
    Thank you for your information.
  • 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 3 results
Your Answer

Please first to submit.