© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
hellounlimited

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...

function navigateToSubPage(e) {
    let nodeid = e.currentTarget.getAttribute("data-nodeid"); 
    getConfiguration().then(res => {
        let prefix = res[0].appURL;
        window.location = prefix + "subpage/" + nodeid; 
    });
}
function navigateToSubPage(e) {
    let nodeid = e.currentTarget.getAttribute("data-nodeid"); 
    getConfiguration().then(res => {
        let prefix = res[0].appURL;
        window.location = prefix + "subpage/" + nodeid; 
    });
}


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
unknown.png
unknown.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Big problem transfering ASP.NET app from one environment to another
C#CC# / help
3y ago
How do i pass data from one form to another?
C#CC# / help
4y ago
ASP.NET file data not being saved in page
C#CC# / help
3y ago
✅ ASP.NET page help
C#CC# / help
8mo ago