Response.Redirect during AjaxMethod call

  1. #1

    Response.Redirect during AjaxMethod call



    Hi,

    Is it possible Response.Redirect during AjaxMethod call?

    I try to do this.. but page still a same as before.. any ideas how to make response.redirect when I call AjaxMethod.



    In couple words.. Its a login form.. in JavaScript I validate textboxes before it sends to server and then call server side method which provide authorization.. if its success - I must redirect user to another page

    
    *   function pso_login()
    *   {
    *       var llSuccess = true;
    *       var l1 = FRMLogin_Login1.validate();
    *       var l2 = FRMLogin_Password1.validate();
    *       var l3 = FRMLogin_Mandator1.validate();
    *       if (l1==false || l2==false || l3==false)
    *           llSuccess = false;
    *       if (llSuccess==true)
    *           Coolite.AjaxMethods.mmks_login();
    *           else
    *           Coolite.AjaxMethods.mmks_RequiredFieldsNotification();
    *   }
    *  *
    *



    and my Ajax method looks

    
    *   <AjaxMethod()> _
    *   Public Sub mmks_login()
    
    *           Response.Clear()
    *           Response.Redirect("PenSolutionOffice.aspx")
    *   End Sub
  2. #2

    RE: Response.Redirect during AjaxMethod call

    Hi,

    Try
    Ext.Redirect("url");
    We introduced Ext.Redirect in 0.8.1 version which you can download at
    http://www.ext.net/download/
  3. #3

    RE: Response.Redirect during AjaxMethod call



    Hi Vlad,

    I download last version 8.1 and copy Dlls to my applcaiton BIN folder.. When I try to use Try.Redirect - its not here ...

    Thanks

    Denis**
  4. #4

    RE: Response.Redirect during AjaxMethod call

    Ext.version is 2.2.1 *is it correct?*
  5. #5

    RE: Response.Redirect during AjaxMethod call

    Hi,

    It is server side method - Ext.Redirect
  6. #6

    RE: Response.Redirect during AjaxMethod call

    Ok! Super! All works fine now :)*

Similar Threads

  1. login & response.redirect
    By svk in forum 1.x Help
    Replies: 2
    Last Post: Jan 17, 2013, 6:10 AM
  2. [CLOSED] Differences between X.Redirect and Response.Redirect
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 10, 2012, 4:29 PM
  3. [CLOSED] Problem with Response.Redirect
    By supera in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 06, 2012, 11:55 AM
  4. TabPanel & 'Response.Redirect' problem
    By unaltro2 in forum 1.x Help
    Replies: 1
    Last Post: Oct 21, 2011, 8:19 AM
  5. problem with Response.Redirect
    By kiran malgi in forum 1.x Help
    Replies: 0
    Last Post: Mar 20, 2010, 2:42 AM

Posting Permissions