Click here to Skip to main content
15,888,610 members
Home / Discussions / Web Development
   

Web Development

 
GeneralMime Header/Content Canonicalization Pin
Member 433068927-Mar-08 20:38
Member 433068927-Mar-08 20:38 
GeneralUpload Directory of Images Pin
tadhg8827-Mar-08 4:26
tadhg8827-Mar-08 4:26 
GeneralRe: Upload Directory of Images Pin
Shog927-Mar-08 5:59
sitebuilderShog927-Mar-08 5:59 
GeneralRe: Upload Directory of Images Pin
tadhg8828-Mar-08 1:27
tadhg8828-Mar-08 1:27 
GeneralRe: Upload Directory of Images Pin
Bradml28-Mar-08 2:14
Bradml28-Mar-08 2:14 
GeneralRe: Upload Directory of Images Pin
Shog928-Mar-08 8:18
sitebuilderShog928-Mar-08 8:18 
GeneralRe: Upload Directory of Images Pin
tadhg888-Apr-08 3:30
tadhg888-Apr-08 3:30 
General(Possibly) wierd (ajaxy) login behaviour Pin
Ed.Poore27-Mar-08 3:01
Ed.Poore27-Mar-08 3:01 
I've been creating an ajax login using the ASP.NET Ajax authentication service and this is displayed inside a thickbox[^].

The problem is thus: when I login from the default page (i.e. /Default.aspx) then everything works fine. If I try and login from a subdirectory such as /Businesses/Default.aspx then the login fails with a 500 error and The server method 'Login' failed..

Any ideas? I remember before I changed the code to use the ajax login it was trying to redirect to /Businesses/Login.aspx which doesn't exist.

The relevant bit of AJAXy code is:
<pre&lt;script type="text/javascript" &gt;<br="" mode="hold"> // Hook up the login button event handler
$addHandler($get("btnLogin"), "click", loginHandler);
var ssa = Sys.Services.AuthenticationService;

function loginHandler() {
var username = $get("txtUsername").value;
var password = $get("txtPassword").value;
var remember = $get("chkRememberMe").checked;

ssa.login(username, password, remember, null, null, onLoginSuccess, onLoginError);
}
function onLoginError(error, context, methodName) {
alert(error.get_message());
}
function onLoginSuccess(result, context, methodName) {
tb_remove();
// Refresh the page
window.location.reload();
}
</script>


GeneralRe: (Possibly) wierd (ajaxy) login behaviour Pin
led mike27-Mar-08 5:11
led mike27-Mar-08 5:11 
GeneralRe: (Possibly) wierd (ajaxy) login behaviour Pin
Ed.Poore27-Mar-08 5:37
Ed.Poore27-Mar-08 5:37 
GeneralRe: (Possibly) wierd (ajaxy) login behaviour Pin
led mike27-Mar-08 5:49
led mike27-Mar-08 5:49 
GeneralRe: (Possibly) wierd (ajaxy) login behaviour Pin
Shog927-Mar-08 5:55
sitebuilderShog927-Mar-08 5:55 
GeneralRe: (Possibly) wierd (ajaxy) login behaviour Pin
Ed.Poore27-Mar-08 7:49
Ed.Poore27-Mar-08 7:49 
GeneralGridView with UpdatePanel - ObjectDataSource sends null values to update method Pin
pulla27-Mar-08 1:31
pulla27-Mar-08 1:31 
GeneralRe: GridView with UpdatePanel - ObjectDataSource sends null values to update method Pin
Shog927-Mar-08 5:53
sitebuilderShog927-Mar-08 5:53 
GeneralRe: GridView with UpdatePanel - ObjectDataSource sends null values to update method Pin
pulla28-Mar-08 0:49
pulla28-Mar-08 0:49 
QuestionHow to work my web pages with all browsers? Pin
KambojR26-Mar-08 22:13
KambojR26-Mar-08 22:13 
GeneralRe: How to work my web pages with all browsers? Pin
Shog927-Mar-08 5:52
sitebuilderShog927-Mar-08 5:52 
GeneralRe: How to work my web pages with all browsers? Pin
KambojR27-Mar-08 23:58
KambojR27-Mar-08 23:58 
QuestionCreating Two level domain names Pin
satishpspl26-Mar-08 20:44
satishpspl26-Mar-08 20:44 
GeneralRe: Creating Two level domain names Pin
Bradml28-Mar-08 1:02
Bradml28-Mar-08 1:02 
QuestionMaking the IE to full Screen Pin
M. J. Jaya Chitra26-Mar-08 19:05
M. J. Jaya Chitra26-Mar-08 19:05 
GeneralRe: Making the IE to full Screen Pin
Shog927-Mar-08 5:46
sitebuilderShog927-Mar-08 5:46 
QuestionRe: Making the IE to full Screen Pin
M. J. Jaya Chitra27-Mar-08 20:53
M. J. Jaya Chitra27-Mar-08 20:53 
GeneralRe: Making the IE to full Screen Pin
Simon P Stevens27-Mar-08 23:26
Simon P Stevens27-Mar-08 23:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.