just want to let you know if I can use Cookie to do the same thing, since it is only client side data, not necessary to pass the tab ID to server.
This is a solution as well, and I think it is much easier since there is no need to pass the id to server.
JS Cookies is a good choice.
Best Regards,
Jiadong Meng
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Participant
1320 Points
491 Posts
Re: How to passing data from razor view to controller in this case?
Jan 09, 2020 02:57 AM|jiadongm|LINK
Hi Peter,
This is a solution as well, and I think it is much easier since there is no need to pass the id to server. JS Cookies is a good choice.
Best Regards,
Jiadong Meng