Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all,
Here i am redirecting from HTML page to ASPX page,
problem is while i am redirecting i need to create a session value,and also i need to get that particular value in my aspx page for some validation

so help me soon

Thanks in advance
Velsamy
Posted
Comments
F-ES Sitecore 6-May-15 3:57am    
What do you mean by "redirecting"? To you mean the html page has a link that links to an aspx page? You can't do anything server-side between the client event and the aspx page being requested, all you'll be able to do is use a synchronous ajax call on the click event of the link on the html page to call a service\webmethod on the target aspx site to pass some data which is held in the session. After the call happens the aspx page is then requested and it should be able to read any data stored in the session by the previous call.

If you can't amend the html page then there is nothing you can do, you'll just need to do all the work on the target aspx page. It's a strange thing to want to do, maybe if you explain what your ultimate goal is someone can advise further.

1 solution

window.sessionStorage.setItem("")
 
Share this answer
 
Comments
avelsamy 12-May-15 2:17am    
i have set this in html page, but how can i get the session values in aspx page
Anup Shetty 12-May-15 3:27am    
in your aspx page,in document.ready function use window.sessionStorage.getItem("")

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900