Asp.Net Ajax - non-static method call

On the client side, I need to call a server method that is not static.

For example, I got the following ucData user control (private code instance), which is the Databind in the load event.

I need a server-side method that should return ucData.IsValid (). Therefore it cannot be static

Is there a way I can do this?

+3
source share
1 answer

No ... because there is no instance on the server to call the method. After the page is generated and sent to the client, there is no more context and all instances will be destroyed.

:

  • ,
  • .
+7

Source: https://habr.com/ru/post/1759197/


All Articles