Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Passing information from one SSR Blazor page to another (preferably without using query strings in the URL)

$
0
0

Inside of Blazor .NET Core 8, using Authentication, I go from my Home.razor page to the Login.Razor page. If I have stored any information in a class in Home.razor that informatoin is lost the minute I load Login.razor.

I could pass the information I need in Login.razor using a query string in the URL and just have Blazor parse the string, but means that information is showing to the user. That isn't good for security purposes. I would rather pass information to Login.razor in another way.

Essentially I have a global theme I would like to pass along for each web page to use. It's a bootstrap css file name. It's just a string, but perhaps in the future I may need to pass more than just a string, I may need to pass a whole class.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>