How to detect the existence of html files

李畋岷 76 Reputation points
2023-09-06T11:25:05.13+00:00

I called a html file through js interop in Blazor component and opened a web page. But in any case, I can't pass the status information of the page's closing to the component. What should I do?

Developer technologies .NET Blazor
{count} votes

1 answer

Sort by: Most helpful
  1. Johan Smarius 470 Reputation points MVP
    2023-09-06T12:45:26.75+00:00

    If I understand you correctly, you want to pass information between the page containing the js function and another page. For simple information, you could use query string parameters for this (page.html?param1=1&param2=3). You could also store this information in the session on the page containing the js function and retrieve this information on the new page.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.