[SOLVED] How to call or describe WebMethod in VB ?

Answered Closed
0
0
Hi. I am trying to call a WebMethod defined in Program.vb from Javascript in a VB project.
The same thing could be done in C#, but if I try to do it in VB, i will get an error at the time of the call.
How do you code in VB to achieve the same functionality as C# ?
Thanks in advance.
  • You must to post comments
Best Answer
0
0

Hi Masafumi,

issue #2105 is fixed in the latest Wisej build (2.1.22).

Best regards
Frank

  • You must to post comments
Best Answer
0
0

Hi Masafumi,

this issue has been logged as #2105.
A fix will be included in the next Wisej build.

We´ll inform you when it´s available.

Best regards
Frank

  • Masafumi Okuro
    Thank you Frank. I look forward to the next build.
  • You must to post comments
Best Answer
0
0

Unfortunately there is a bug preventing Wisej from identifying the Program module (or something changed in .NET). Wisej checks if the class is static (or a module) checking IsSealed and IsAbstract. But VB.NET returns only IsSealed. It will be fixed in the next build. You can however add a method to Window1 and call it using the instance App.Window1.Method(). Or you can add it to the main page and call it using: App.MainPage.Method().

  • Masafumi Okuro
    OK. After that, it was confirmed that the following methods could be used. {App.Window1.Method(); App.Page1.Method(); App.Desktop.Method(); App.MainPage.Method();] I will try to substitute one of them. Thank you Luca.
  • You must to post comments
Showing 3 results