WiseJ.Web.Upload Control does not respond to code requests to change Visible and/or Enabled

0
0

Hi All

Setting the upload control to visible or enabled from code doesn’t seem to be working. If I set the control to either Visible = false or Enabled = false in the initial properties and then set some trigger (button, event, etc), the Visible = true or Enabled = true does not make the control change to Visible or Enabled.

eg:

private void button1_Click(object sender, EventArgs e) {
upload1.Enabled = true;
}

WiseJ ver 1.5.4

  • Kevin Caine
    A temporary work-around so far is to “hide” the field by overlapping a panel, or sending to back (ie: changing the z-index), then using the code described by Luca in https://wisej.com/support/question/upload-controls-visible-property and assigning a button to trigger the event, this button can then be enabled/disabled or set visible.
  • Luca (ITG)
    I tried with 1.5.4 and later and it always works for me, both Visible and Enabled properties. If you attach a small test case maybe we can spot what else is not working.
  • Kevin Caine
    Will do, have a thought that it might be related to modal settings on the form hosting the panel. Will send when I get a gap. My current project keeps me hectic, and I am not a fast programmer Edit: Changed word ‘model’ to ‘modal’, they mean different things.
  • Kevin Caine
    Nuts… Unable to reproduce in new project, but still happening in my existing project. Even tried setting the similar panels, web.config and inheritance (even added the Crystal Reports). No console errors, no debug errors. So without sending my entire code, my current workaround will have to stay. As an aside, I seem to have similar issues when using an ASPNetPanel to host a Crystal Report Page, none of the Crystal Report buttons respond, so have to call new blank page to host the Crystal Report in a Native aspx page… Javascript blocking somewhere?
  • You must to post comments
0
0

Hi Kevin,

Did you try it running Wisej 1.5.9?

  • Kevin Caine
    Hi Tiago, no… Company policy and mine is that we don’t use development builds on any product. This specific project is RAD in the worst way, have 2 months to develop in WiseJ, the same app and functionality that our MVC Razor couldn’t do in 10 months. Nearly at same point after 2 weeks, but pressure is on.
  • Tiago (ITG)
    This is asking for a case study when you are finished. :)
  • Kevin Caine
    Already promised to Thomas :D
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.