Q & A Tech From Office

How to get value in the session in jQuery


You can't access session variables directly from jQuery: Sessions run on the server; JavaScript runs on the client.



----------------------------------------------------

 what is onget method in .net core 6 class

Handler methods in Razor Pages are methods that are automatically executed as a result of a request. The Razor Pages framework uses a naming convention to select the appropriate handler method to execute. The default convention works by matching the HTTP verb used for the request to the name of the method, which is prefixed with "On": OnGet()OnPost()OnPut() etc.

Handler methods also have optional asynchronous equivalents: OnPostAsync()OnGetAsync() etc. You do not need to add the Async suffix. The option is provided for developers who prefer to use the Async suffix on methods that contain asynchronous code


Comments

Popular Posts