Timeline for Keep the value on textbox after page reload
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 9, 2018 at 5:20 | vote | accept | Rinu | ||
Jan 9, 2018 at 5:20 | comment | added | Rinu | I was able to get it done with _spBodyOnLoadFunctionNames.push("MyFunction"); function MyFunction() { alert("page load"); alert(sessionStorage.getItem(total)); document.getElementById('Text1').value = sessionStorage.getItem(total); Total(); document.getElementById('Text1').value = sessionStorage.getItem("lastname"); }; | |
Jan 9, 2018 at 1:39 | comment | added | Lee | I had used session in SharePoint 2010, msdn.microsoft.com/en-us/library/… . While it's server side object so you need maintain the life-cycle. | |
Jan 8, 2018 at 10:44 | comment | added | Rinu | can we work with session objects in sharepoint ? | |
Jan 8, 2018 at 8:50 | history | answered | Lee | CC BY-SA 3.0 |