1 //返回到上一个页面 2 function CustViewBack() { 3 window.location.href = $("#<%=this.hidOriginalUrl.ClientID %>").val(); 4 } 5 6 onclick="javascript:CustViewBack();return false;" 7 8 <asp:HiddenField ID="hidOriginalUrl" runat="server"/> 9 10 hidOriginalUrl.Value = Request.UrlReferrer.ToString();