摘要: protected void Page_Load(object sender, EventArgs e) { /* 首先需要引用的命名空间是:System.Drawing; */ GraphicsImage(); } private void GraphicsImage() { int width = 800, hight = 400; Bitmap image = new Bitmap(width,... 阅读全文
posted @ 2012-10-09 22:18 yxyht 阅读(418) 评论(0) 推荐(0) 编辑
摘要: string GetIp() { //可以透过代理服务器 string userIP = Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (userIP == null || userIP == "") { //没有代理服务器,如果有代理服务器获取的是代理服务器的IP userIP = Request.ServerVariables["REMOTE_ADDR"]; } return userIP; }在ASP中使用 Request.ServerVariables("RE 阅读全文
posted @ 2012-10-09 21:55 yxyht 阅读(749) 评论(0) 推荐(0) 编辑