摘要:
案例:item.Attributes.Add("UserID", this.TreeView1.SelectedNode.ToolTip.ToString());txtThem.Text= item.Attributes["UserID"].ToString(); 阅读全文
摘要:
/// 取得用户客户端IP(穿过代理服务器取远程用户真实IP地址)///public static string GetClientIP(){//如果使用代理,获取真实IPstring userip = string.Empty;if (HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != ""){userip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];}else{us 阅读全文
摘要:
序列化字符方法:注意这里的引用“System.Runtime.Serialization”和“System.ServiceModel.Web”using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Runtime.Serialization.Json;using System.ServiceModel.Web;///记得引用这个命名空间using System.IO;using System.Text;namespace BLL{//////序列化实体类///pu 阅读全文
只有注册用户登录后才能阅读该文。 阅读全文