set a value in session using javascript
<script type="text/javascript">
function SetUserName()
{
var userName = "Shahid Bhat";
'<%Session["UserName"] = "' + userName + '"; %>';
alert('<%=Session["UserName"] %>');
}
</script><script type="text/javascript">
function GetUserName()
{
var username = '<%= Session["UserName"] %>';
alert(username );
}
</script>
Also in JavaScript:
- react native appbar
- syntax to call item from array
- javascript print
- website login and registartion source code jsp java
- javascript nth root
- react not recognizing lorem
- vuejs request payload for graphql
- js convert truthy
- hex string to int javascript
- how to check is the key of a localstorage is emopty
- fetch response json or text
- js how to add two arrays together
- dice roller javascript
- how to remove key value pair from object in javascript
- react router last page
- site "src="https://cdnjs.cloudflare.com/ajax/libs/popper.js"
- js array delete last
- find element with data attribute jquery
- javascript subset of object array matching certain property
- javascript get browser name
- how create array with names of files in folder nodejs
- aos js
- switch statement in javascript
- js invert color