Pages

Wednesday, 3 July 2013

How To Get Access Session Variable Value in Asp.net c# Using jQuery

How To Get Access Session Variable Value in Asp.net c# Using jQuery


Program:

.Aspx File:

<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script type="text/javascript">
    $(function () {
        var name = '<%= Session["UserName"] %>'
        $('#lbltxt').text(name)
    });
</script>
</head>
<body>
<label id="lbltxt" />
</body>
</html>

No comments:

Post a Comment