I am writing a code in javascript (in .aspx page) which will insert values in database using jquery ajax code through webservice and then it will perform redirect operation, but it does not perform redirection .. please tell me if i am doing something wrong in my code ... here is my code ..
<script type="text/javascript">
function xyz()
{
$.ajax({
type: "POST"
url: "WebService.asmx/InsertRediretTime"
});
window.location='....location...';
}
</script>