All Answers

0 votes
In reply to: Error setting color

Hi all,

We encountered the same issue after upgrading from version 3.5 to version 4.0.
Were you eventually able to find a workaround for the problem?

Kind regards,
Tom

 

0 votes

Thanks Gabriele,
I solved it.
Comparing the IIS configurations on the two servers, I noticed that the WebSocket protocol was disabled on the 2025.

0 votes

I have tried to reproduce the problem on a fresh installed Windows 2025 server but all works as expected.

0 votes

Hello,

Unfortunately there’s no way to disable the Server Express popup.  The only way would be to switch to a paid server license. You can find more details here: https://wisej.com/server-licenses/

 

-Julie

0 votes
In reply to: Concat PDF

Hi Mirko,

Since Wisej.NET is part of the .NET ecosystem, you can try one like iTextSharp.

Concatenating a PDF or editing it is not part of Wisej.NET, unless you can find a viewer that offers such features.

Best Regards,

Alaa

0 votes

Hi Julie,

 

You suggestion about the GetResourceString was very helpful.  I’m still having problems with streamlining this application, I created a test project (attached).

  1. I used Button1 to draw a rectangle which fires the method “Test”.  It didn’t draw and the error: Unknown function: drawFurnishingsMovement showed, but with a second click and any subsequent clicks it worked fine.  Not sure what’s happening there.  I thought I had initialization covered.
  2. I added some mouse handlers.  They don’t seem to be working.  I created a test “TestWidgetSetup” method to use with the button for this and it failed as well.

In my real project, I simply want to drag some boxes across the widget that is superimposed on a picture box. The app uses GDI+ to draw the objects on the picture box but dragging them by redrawing via GDI+ is too slow.  The idea is do a final redraw of the scene without the objects stored in the picture box, with the objects I want to move then drawn on the widget superimposed on the background scene in the picture box.  I simply want to select an object and drag it to another position.  Perhaps there’s an existing javascript out there that already can do this.

On a side note:  In the test project I tried to use Application.MainPage.top and similar to position my pictureboxes added to simlate my real project.  It showed Application.MainPage was nothing despite the call in Program.vb (Application.MainPage = new Page1()).  This works in my real project upgraded from WiseJ 2.5 but not in the new WiseJ4 project.  Just curious.

Thanks again,

Gerry

0 votes

Hi Julie,

I added a class OverlayCanvasWidget as per your suggestion, which contains Return GetResourceString(“OverlayCanvasWidget.js”).   “OverlayCanvasWidget.js” is set to Embedded Resource. I’m getting an error message on form load:

Error: “Unknown function: drawFurnishingsMovement”

I initialize the widget like this: Private WithEvents OverlayWidget As New OverlayCanvasWidget() and on load make a call to clear it:

OverlayWidget.Call(“drawFurnishingsMovement”, New Dictionary(Of String, Object) From {
{“dx”, 0},
{“dy”, 0},
{“objects”, New List(Of Object)()}
})

Do I need a line in Default.html like: <script src=”Scripts/Widgets/OverlayCanvasWidget.js”></script>?  What else could I be missing?

Thanks very much for you help!!

Gerry

0 votes
In reply to: Wisej.AI Trial Version

No, you need to become a Technology Partner for access to Wisej AI. You can contact sales AT wisej.com for more information.

0 votes
In reply to: Testing a session ID
0 votes

See attached test case.

You need to put all of the js code in a single file, in this case I put it in a file called startup.js.

If you want to load the js code from a file instead of setting it as a string in the InitScript, you need to create a new class that derives from Widget.

Public Class NewWidget
Inherits Wisej.Web.Widget
Public Overrides Property InitScript As String
Get
Return GetResourceString("WidgetTestApp.startup.js")
End Get
Set(value As String)
End Set
End Property
End Class

Note this line of code: Return GetResourceString("WidgetTestApp.startup.js") is where you are telling it where to find the js code. In VB.NET you don’t need to include the folder name like you do in c#. See https://docs.wisej.com/docs/concepts/embedded-resources#resources-and-platform-folders

0 votes
In reply to: Moving Up

You can find the VSIX installer for Wisej 4.0 here: https://wisej.com/builds/ It’s the first VSIX as you start scrolling down, the second one is Wisej 3.

You can add a user control the same way as in Wisej 3: Right-click in the solution explorer, Add -> New Item. Choose “Wisej.NET 4” from the left hand side and then choose “User Control”

0 votes

Thanks Julie!  As I mentioned, this is my first try at this.   The code make this look simple, add the widget, .js file, and a call, but I’m still unsure.

I added the “init” file OverlayCanvasWidget.js. In it’s Properties I set the Build Action to “Embeded Resource” and the Copy to Output Directory to “Copy if Newer”.

In the actual Widget I placed on my page I set the Package Name and Source, however in the InitScript, I’m not sure of the syntax of identifying the “init” file, which is “Scripts/Widgets/OverlayCanvasWidget.js”.  I assume this is what it is looking for, but it doesn’t work.  I can’t find in the documentation how to do this specifically.

Another suggestion or two would be helpful.

Thanks much!

Gerry

 

0 votes

Try setting the InitScript of the widget to your js code
https://docs.wisej.com/api/wisej.web/content/widget#initscript

0 votes

The PivotGrid is going to be blank unless you set measures.
PivotGrid doesn’t support just displaying raw data.
You can test this by looking at the demobrowser code and commenting out the measures section- the PivotGrid is then blank. You’re better off using a Kendo TreeList for something like this.

  • Julie(ITG) answered Aug 4, 2025 - 4:17 pm
  • last active Aug 4, 2025 - 4:18 pm
0 votes

Hello,

We would need a compliable test case in order to assist you. You have provided some code, but it’s not in a runnable test case.

Julie

1 vote

Another resource you should consider using is the AI search feature on our website: https://wisej.com/blog/your-wisej-net-questions-answered-powered-by-ai/

For example, if I search “How to prevent the user from closing the browser” I get this result:

You cannot fully prevent a user from closing their browser or tab, but you can warn them before they leave the page using the browser’s built-in “beforeunload” event.

To show a warning when a user tries to close the tab or browser:

window.addEventListener('beforeunload', function (e) {
  e.preventDefault();
  e.returnValue = '';
});
  • This triggers a confirmation dialog when the user tries to close the tab, refresh, or navigate away.
  •  Modern browsers do not allow you to customize the dialog text for security reasons.
  •  Users can still choose to leave, so this only acts as a warning, not a true prevention.

There is no way to completely block a user from closing their browser or tab, as this would be a security and usability risk. Use the “beforeunload” event to warn users, but always design your application to handle unexpected exits gracefully.

Here you should use the Application.EnableUnloadConfirmation, see documentation here:  https://docs.wisej.com/api/v3.5/wisej.web/general/application#enableunloadconfirmation Simply set Application.EnableUnloadConfirmation = true;

See also this forum thread: https://wisej.com/support/question/how-can-i-implement-a-notification-or-warning-message-in-wisej-when-a-user-attempts-to-close-the-browser-or-tab

0 votes

Yes. You’ll need to set the BoldedDates property to the dates that you want to set the backcolor for. Then modify the theme to set the back color.
See my answer here, which includes a a sample with the modified theme. https://wisej.com/support/question/datetimepicker

0 votes

Hi,

I’m back with a compilable test case that shows the issue, including the URL I’ve been testing.
The behavior is exactly as I previously described:

01. If you load the tree view with all elements, the JavaScript does not execute at all.

02. If you load it with only 4 elements, the JavaScript executes and displays a message that nothing was found (which is not the issue we’re discussing).

Execute the two buttons in different sessions, not one after another in one session.

Please find source code attached. It is based on NET 4.8

Kind regards!

 

  • mgmst answered Jul 30, 2025 - 5:06 pm
0 votes

Hi there,

I tried to reproduce the issue exactly like you stated, and I couldn’t reproduce.

Furthermore, having a TreeView with more than 4 nodes works, there’s no relation as to why having a TreeView with more than 4 nodes would fail evaluating javascript in the WebBrowser component.

At this point, we’re trying to guess what you’re trying to accomplish and it’s beyond the scope of free Wisej.NET support, please verify the javascript you’re trying to execute and make sure everything is escaped correctly.

The only way for us to verify this is to have a compilable, ready-to-run sample that demonstrates the issue reported.

Best Regards,
Alaa

0 votes

Hi,

I’m coming back with a solution to the problem, whose cause and fix turned out to be utterly absurd.

If a SplitContainer contains a TreeView and a Wisej.Web.WebBrowser, and the TreeView has more than 4 nodes, then Wisej.Web.WebBrowser.Eval(js) does not execute.
But if the number of nodes is 4 or fewer, the JS does execute.

This bizarre bug makes it impossible to implement an e-book scenario with a browser and a tree view containing more than 4 topics — which is, to put it mildly, EXTREMELY ANNOYING.

Please find images attached.

  • mgmst answered Jul 29, 2025 - 11:09 pm
Showing 161 - 180 of 11k results