You can inject a JavaScript EventListener to manage the ‘beforeunload’ event into your page (or window o desktop) using the InitScript property of page/window/desktop
window.addEventListener(‘beforeunload’, function (e) {
App.ManageBrowserClose();
});
The listener call a method inside the Program Class ( Program.cs) of you Application. In this example the method il called ManageBrowserClose()
The called method is decorated with the [WebMethod] attribute so it became callable from JavaScript.
[WebMethod]
public static void ManageBrowserClose()
{
try
{
//Here you code
}
catch (Exception)
{
throw;
}
}
Be aware that you can’t debug in Visual Studio the code when invoked by the EventListener because Visual Studio lost connection with the browser, but the code inside is executed.
Try restarting your computer and also restarting Visual Studio. Also make sure that you have the most recent version of the Wisej VSIX. You can either download the VSIX via Visual Studio (Extensions -> Manage Extensions -> Updates -> Select Wisej.NET 3 -> Update) or via the installer on our website here: https://docs.wisej.com/docs/releases/whats-new-in-3.5
Look into using the HtmlPanel.
Documentation: https://docs.wisej.com/docs/controls/content/htmlpanel
Hi Julie,
I went to the license test, you can view a sanitized screenshot here. I verified the user that nginx and the app are running as have read/write permissions to the license path just in case that could create problems.
Would it actually say that it’s invalid due to premium extensions being present, or would it just say invalid like my screenshot does?
Hello Frank, I have attached for you an example where values are not transferred from a screen add_item_public to screen In the DGV
The attached video and sample can be downloaded from here :
https://www.mediafire.com/file/imnkwvrub8th7ua/WisejWebDesktopApplication1.rar/file
Thank .
This had something to do with styles & other content leftover from the VWG designer that the WiseJ designer carried forward. I removed all cell styles from the grids and then re-added the appropriate style and the grid started working correctly. I don’t know exactly what it was – I fiddled with it for hours, cleaning up junk in the .designer.cs file until it started working.
This had something to do with styles & other content leftover from the VWG designer that the WiseJ designer carried forward. I removed all cell styles from the grids and then re-added the appropriate style and the grid started working correctly. I don’t know exactly what it was – I fiddled with it for hours, cleaning up junk in the .designer.cs file until it started working.
Thank you for the quick response Julie.
I do have a devexpress license, but I’ve not used any of their controls or methods in my wisej project. I do have references to a dll from another project for business logic and database IO methods, and that probably has some references to devex winforms controls, but not any web stuff. The message I get specifically says “Invalid Server License”, a blank expiration, and the version number. It doesn’t say anything about premium extensions, but if those could potentially cause the error I’ll try building a simple app without any of those references and see if it works.
I am using the server license in the web.config file. I did try it with the developer license just to see if that would do anything different, but at the moment it’s back to using the server express one.
I’ll try checking the LicenseTest and see what that says. If it’s just because of the premium extensions I have no problem buying a server license. Eventually I’d want to be able to use devex in my projects anyway, we just wanted to see if work first.
Are you using a premium extension (ie Kendo, Syncfusion, etc)? If you are using a premium extension with the Server Express license, then you should be getting an “invalid license” message.
Note that the license you use in the web.config file should be the “Server Express” license, NOT the “Developer Professional” license. You need to use a server license in web.config.
I tested with your “Wisej Server Express License” (You provided the license when you messaged support via email.). I just deployed a small test application to IIS to see if I got any license errors. It does give a license warning about the premium extensions as expected. If I use the license in a project without premium extensions, the warning goes away.
One thing that I did during my testing that you can try- deploy to IIS, then go to 192.168.x.x/LicenseTest/license.wx where 192.168.x.x is the name of your ip, and LicenseTest is the name of your application. It will display a page of information about the license that the application is using.
I’ve attached a screenshot of what the license.wx screen looks like for me when I use your license (with the license key and other sensitive information redacted of course)
Hi Francesco,
you can use the Application.Session object:
https://docs.wisej.com/docs/controls/general/application#session-object
Best regards
Frank
For anyone who has the same problem. To solve it, just ask Aruba to insert the domain into a full trust server. It’s free
Thank you all
Hi Tuan,
this has been fixed in Wisej.NET 3.5.6 that was just released.
Best regards
Frank
Hi Tiziana,
SortGlyphDirection can only be visible on one column, that’s how it’s designed.
If you need more than one image in a header cell you can also implement it with a UserControl or a Panel,
remembering you can put any control inside a header cell:

Of course you need to handle all the icons etc. in your code.
Best regards
Frank
Hi Rupert,
Thank you for reporting this issue, unfortunately I was not able to reproduce the issue, can you please give us the exact steps ?
Also, it would be great if you can wrap up a sample that closely mimics your DataGridView.
Best Regards,
Alaa
//
Hi Frank, I’ve implemented the SortComparer and it works.
My issue lies specifically in displaying the sorting symbol in the DataGridView control. For each column, there’s a property called column.HeaderCell.SortGlyphDirection which should show the sorting symbol correctly.
The problem is that I can only assign one symbol at a time because when I assign it to a second column, the symbol for the first one disappears.
I thought about using the control’s image field, but in some cases, I’m already using it for other purposes.
Is there a possibility, perhaps with an option on the control, to prevent the sorting symbol of one column from disappearing if I assign it to another? I’ll handle it programmatically if needed.
Best Regards
Tiziano
Hi Tiziano,
while you can sort by multiple columns with implementing your SortComparer,
you will have to show custom images in the header cells reflecting the sort status.
A visual display of multi column sorting is not supported out of the box.
Best regards
Frank
Hi Cristian,
Wisej.NET just uses HTML5 video tag on the client thus a looping video should be automatically cached on the client for subsequent views.
Maybe you’ve disabled the cache somewhere? In any case it’s out of the Wisej.NET scope.
Best regards
Frank
When running on localhost, Wisej does not check for a server license (thus the lack of an error when running on localhost). If you are getting the “Invalid license” error, make sure that you have entered the license key in the web.config file.
You can also try these trouble-shooting steps:
https://wisej.com/support/question/invalid-server-license-6
If none of that works, contact us at supportATwisej.com with your license key and we can check that the license key is valid. (You’ll have to email support because it’s not wise to post the key on a public forum.)
Hope this helps,
Julie
It may be that the distribution is the same as Asp.net but many Asp.net sites open, the only Wisej does not.
I already purchased the Developer license and also wrote it above, what should I do to get help?
Hi Francesco,
deploying Wisej.NET applications is not much different from ASP.NET deployment.
You can find some pointers here:
https://docs.wisej.com/deployment/targets/asp.net-providers
An old forum thread about Aruba here:
https://wisej.com/support/question/publish-application-on-aruba-web-hosting
For direct support licensing you’d need to purchase an enterprise license:
https://docs.wisej.com/license/license-model/developer-licenses
Best regards
Frank
