AJAX Page - EndResponse method

This method is used in the processing page to stop the execution at server-side.

When called, the method stops the processing and returns to the client the data processed until that moment.

It can be used if for example you want to load a page at the client and end the server-side processing at that point, depending on the result. For example, you can use the next lines:

    if (myAction == "login")
    {
        ExecBeforeLoad("document.location.href='login.aspx'");
        EndResponse();
    }
		
to load the page login.aspx at the client and end the server processing.

See also: ExecBeforeLoad tutorial.