ets
13 Apr 2007, 6:09 AM
Hi all
I have the followen situation:
I have design a Ext.Form basicaly a Login Form, when the user click the button login, I call
formLogin.submit(.....
This is my form defination:
formLogin = new Ext.Form({
labelAlign: 'right',
labelWidth: 75,
url:"/mysite/login.ashx"
});
and then the HttpHandler (login.ashx) validate the Login and Password, if there are some error return a JSON data indicating the error, if every thing is OK I want to redirect to another page and here is the problem:
context.Redirect("/mysite/FirstPage.aspx", false);
This redirection Respond with Firstpage.aspx but the Handler Call expect a JSON data and an error is produced.
There are a way to redirect from the httpHandler and not from javascritp code?
For security reason I don't want to make :
window.location = "/mysite/FirstPage.aspx";
Thank in anvanced
Daniel
I have the followen situation:
I have design a Ext.Form basicaly a Login Form, when the user click the button login, I call
formLogin.submit(.....
This is my form defination:
formLogin = new Ext.Form({
labelAlign: 'right',
labelWidth: 75,
url:"/mysite/login.ashx"
});
and then the HttpHandler (login.ashx) validate the Login and Password, if there are some error return a JSON data indicating the error, if every thing is OK I want to redirect to another page and here is the problem:
context.Redirect("/mysite/FirstPage.aspx", false);
This redirection Respond with Firstpage.aspx but the Handler Call expect a JSON data and an error is produced.
There are a way to redirect from the httpHandler and not from javascritp code?
For security reason I don't want to make :
window.location = "/mysite/FirstPage.aspx";
Thank in anvanced
Daniel