Hi,
how do I pass a list<string> variable to another aspx.cs page without redirecting to another page upon the button click? I’ve tried redirecting it but it doesn’t work and also the redirect function isn’t very necessary.
Session is one of many state management ASP.NET features. Session caches state per user and is available to every page in Web Forms.
Session["MyList"] = theList
https://docs.microsoft.com/en-us/dotnet/api/system.web.httpcontext.session?view=netframework-4.8