pass data onclick from one page to another page in asp net
hi all, im trying to redirect a page from Main Page to Sub Page
when i click an item on Main Page i redirect to SubPage using window.location
is there another way we could send data from Main Page to Sub Page not by passing data on the link (just in case the data is too long)? for example if we're trying to send the information of the item we click on Main Page then we send to Sub page.
so i wanted to for example if i click the first row first column data "Medline Industries, Inc." then i 'll take this "Medline Industries, Inc." to the /sub page...
currently im using asp net core for the project and come across "State management" topic, do we have to store the infromation we need to pass using cookie? please help advise, thank you so much in advance
1 Reply
I'm not an expert on asp.net but what i would do in this situation is create a cache for every company and make they key a randomized guid. You can then add that guid to your url and take the correct date from the cache from within the subpage.