当前位置:编程学习 > 网站相关 >>

用ajax实现Session永不过期

 <title></title>
    <script src="js/Jquery1.7.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            function post() {
                $.ajax({
                    type: "post",
                    contentType: "application/json",
                    url: "WebBlock.aspx"
                })
            }
           
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server" Height="409px" TextMode="MultiLine"
            Width="449px"></asp:TextBox>
        <asp:Button ID="Button1"
            runat="server" Text="保存" OnClientClick="" onclick="Button1_Click" />
    </div>
    </form>
补充:Web开发 , 其他 ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,