Hi,
I have made a Forms Authentication application, which is working good. Only
problem that I have is with redirection.
Here is my code:
LdapAuthenticat ion adAuth = new LdapAuthenticat ion(adPath);
try {
if(true == adAuth.IsAuthen ticated(txtDoma in.Text, txtUsername.Tex t,
txtPassword.Tex t)) {
Session.Add("lo ginName", txtUsername.Tex t);
//Response.Redire ct("http://www.yahoo.com", true);
Response.Redire ct("http://xyz.com/secretqs/default.aspx",
false);
}
}
Redirection to yahoo works fine but when I try to redirect to another page
in same site it doesn't work, instead I see:
http://xyz.coml/secretqs/Logon.aspx?...2fdefault.aspx
"?ReturnUrl=%2f secretqs%2fdefa ult.aspx" gets appended to the link instead of
redirecting to that page.
That happens both in IE7 and Firefox 2.x.
I am still not able to figure out if the problem is in Browser or in my
code.
thanks
Mike