Click here to Skip to main content
15,891,567 members

Comments by Member 11770244 (Top 4 by date)

Member 11770244 14-Jul-16 5:16am View    
public static void switchToOtheruser(int UserID)
{
using (var context = new Context(DALBase.GetConnectionString()))
{

var usr = context.Users.FirstOrDefault(m => m.UserID == UserID);
LoginUtils.Login(usr.LoginName, Crypto.Decrypt(usr.LoginPassword));
}
}

and it is a web method
Member 11770244 14-Jul-16 5:09am View    
dto: {
UserID: $('#userList').val()
}
i am sending dropdownlist selected value to code behind
Member 11770244 13-Jul-16 13:13pm View    
http://localhost:1971/MyHome.aspx/switchToOtheruser Failed to load resource: the server responded with a status of 401 (Unauthorized),the above issue was i am getting please provide me any solutions for the above.
Member 11770244 29-Jun-16 9:42am View    
my code in js file:
var dialog = renderer.create('<div class="modal" aria-hidden="false" tabindex="-1"/>', function ($node, options) {
if (options.fade) {
$node.addClass('fade');
}
$node.html([
'<div class="modal-dialog">',
' <div class="modal-content" ">',
(options.title ?
' <div class="modal-header">' +
' <button type="button" class="close" id="btnClose" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>' +
' ' +
' </div>' : ''
),
' <div class="modal-body">' + options.body + '</div>',
(options.footer ?
' <div class="modal-footer">' + options.footer + '</div>' : ''
),
' </div>',
'</div>'
].join(''));
});
within that data-dismiss="modal",because of that it is was closing complete modal,i don't want to close complete modal i want to close inside summary dilogs when click on close button icon,plese help me out,it's urgent