How can I set a global variable in razor page of .net core?
问题 I wanna to check if the browser is IE and do something in razor page. I just made a function in razor page to do that. However,I think use the function to check if the browser is IE in every razor page is redundant.For independent user,I just need to check this only one time and set a global variable that IsIE=true/false.And other page will easily know that if it is IE. The question is how can I get/set a global variable in razor page? Thank you. ———————————————— To @Neville Nazerane ,here is