弹出了1,却跳转不了页面

success: function (result) {

                    if(result==2)
                    {
                        alert("1");
                       window.location.href="UserList.aspx";

                    }

如果能进入if判断,那就检查一下文件名吧

window.location.href="<%=path%>/UserList.aspx";
你的路径有问题

<%
String contextpath = request.getContextPath();
%>

window.location.href="<%=contextpath%>/UserList.aspx";

动态创建一个表单添加到body,设置好action,然后提交这个表单试试,之前看到有些人碰到location无法调整情况,用表单提交方式可以跳转

试试 window.location.href="/UserList.aspx";