$(document).ready(function () { var name = prompt("Please enter your packageid", "test"); var fullurl = 'http://localhost:8080/jw/web/json/workflow/process/list?j_username=kermit&hash=9449B5ABCFA9AFDA36B801351ED3DF66&loginAs=' + <%= HttpContext.Current.User.Identity.Name %> + 'packageId=' + name; $.ajax({ type: "GET", url: fullurl, dataType: "JSONP", success: function (result) {
the above code should work, on the javascript front, you will not have access to the HTTPContent object, which is available only on the server, but by placing it in the server code, you must have access to it.
or you can have a hidden control with a value set from the server
<input type='hidden' id='uid' runat='server'>
server code will look like
uid.value = HTTPContext.Current.User.Identity.Name;
Chandra sekhar walajapet
source share