摘要: string user_IP = System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];//获得客户端IP地址 Response.Write(user_IP); Response.Write("<br />2"+P 阅读全文
posted @ 2019-12-01 17:14 张三道 阅读(154) 评论(0) 推荐(0)
摘要: 1、Response.Write()打开新窗口 Response.Write(" <script type='text/JavaScript'>window.open('" + url + "','_blank'); </script>"); 2、asp.net打开新窗口的多种方法 1.Respon 阅读全文
posted @ 2019-11-29 19:01 张三道 阅读(653) 评论(0) 推荐(0)
摘要: 打开电脑的控制面板,选择程序 启用或关闭WINDOWS功能 Internet Information Services 万维网服务 常见HTTP功能 勾选静态内容就可以了。 阅读全文
posted @ 2019-11-14 20:13 张三道 阅读(2196) 评论(0) 推荐(0)
摘要: 完整方法如下: /// <summary> /// 把DataTable内容导出excel并返回客户端 /// </summary> /// <param name="dgData">待导出的DataTable</param> /// 创 建 人:陈文凯 /// 创建日期:2005年10月08日 / 阅读全文
posted @ 2019-03-13 00:40 张三道 阅读(374) 评论(0) 推荐(0)
摘要: <asp:textbox id="TextBox1" onkeyup="if(isNaN(value))execCommand('undo')" runat="server" Width="80px" onafterpaste="if(isNaN(value))execCommand('undo') 阅读全文
posted @ 2019-01-01 22:15 张三道 阅读(970) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv=" 阅读全文
posted @ 2018-12-24 20:29 张三道 阅读(2525) 评论(0) 推荐(0)
摘要: bootstrap框架: http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css jquery库: http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js bootstra 阅读全文
posted @ 2018-12-24 17:19 张三道 阅读(477) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-11-07 21:53 张三道 阅读(1) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-11-06 11:10 张三道 阅读(1) 评论(0) 推荐(0)
摘要: 在学习当中碰到cookie中文乱码问题,问题原因:cookie对中文不太支持,将中文放入cookie中会报错误。 解决办法: 1.编码 将中文进行编码再放入cookie中: String username1 = URLEncoder.encode(username, "utf-8"); String 阅读全文
posted @ 2018-10-23 11:37 张三道 阅读(1197) 评论(0) 推荐(0)