showLoginDialog issue

Hello,

I have a login form (login.aspx). If the user enters the right credentials, i want to redirect the user to the corresponding page with his role..(admin, manager, etc…)
How can i redirect to another page? Preferably to an .aspx page not a .jsp one…
I followed your example:

loginOk= false;
isc.showLoginDialog(function (credentials, dialogCallback) 
		{
			var request = isc.RPCRequest.create(
			{
				actionURL: "Admin.aspx",
				httpMethod: "GET",
				contentType: "text/xml",
				params: {name: credentials.username, 
                                             pass: credentials.password},
				useSimpleHttp: true,
				serverOutputAsString: true,
				callback: "checkLogin(rpcResponse, rpcRequest)",
				myDialogCallback : dialogCallback
		})
		isc.RPCManager.sendRequest(request);
	})

function checkLogin(response, request) 
{
		[B]//if (username=="Gigi"&& password=="abc") [/B]
		//{
			loginOk= true;	
		//}
		//else
		//{
			//loginOk= false;
		//}
        request.myDialogCallback(loginOk);
		[B]//response.sendRedirect("Admin.aspx");[/B]
}

And also how can i check those credentials? From where do i get the name and pass strings?

Hi cilica5,

The username and password are going to arrive at your page “Admin.aspx” as normal URL parameters called “name” and “pass”. Your server should then respond with some indication of success or failure that you can detect within “checkLogin”.

For example, if the login succeeded, you could send back a normal response, and if it failed, you could cause a 500 server error by throwing an exception. The user will never directly see the 500 server error, but your code could detect it by checking response.httpResponseCode == 500.

To redirect the user on success, just use window.location = newURL.