2018年8月16日
摘要: 1 public class DBHelper 2 { 3 //数据库连接属性,从config配置文件中获取连接字符串connectionString 4 public static string Connection = ConfigurationManager.AppSettings["ConnectionString"].ToStri... 阅读全文
posted @ 2018-08-16 09:55 菜鸟也想上天 阅读(185) 评论(0) 推荐(0)
摘要: 1 //webconfig配置文件 2 3 4 5 6 7 8 9 10 //DBHelper.cs 11 public static class DBHelper 12 { 13 //数据库连接属性,从config配置文件中获取连接字符串connectionSt... 阅读全文
posted @ 2018-08-16 09:54 菜鸟也想上天 阅读(1928) 评论(0) 推荐(0)
摘要: 1 //ashx文件 2 3 public void ProcessRequest (HttpContext context) { 4 5 string action=context.Request["action"]; 6 7 if (action == "GetIP") 8 { 9 string result; 10 res... 阅读全文
posted @ 2018-08-16 09:41 菜鸟也想上天 阅读(920) 评论(0) 推荐(0)