private void SendJsCallback(HttpContext context, LoginProfile profile) { //Render a page context.Response.ContentType = "text/html"; context.Response.Write(JsCallbackHelper.GetCallbackPage().Replace("%PROFILE%", profile.ToJson()).Replace("%CALLBACK%", Callback)); }