2008年4月14日
摘要: function ShowDialog(){ window.showModalDialog('Query_Display.aspx','window');}注:该方法打开窗口后,在子窗口执行某些事件时,会弹出新的窗口,避免方法是在子窗口页面的<head>之间写下如下脚本:<base target="_self" /> 阅读全文
posted @ 2008-04-14 10:58 大胖头 阅读(194) 评论(0) 推荐(0) 编辑
  2007年4月27日
摘要: 对于一个要引用多个类的用户控件的web part来说,把这些类编译成一个dll文件放到80下的bin文件夹下即可使用 阅读全文
posted @ 2007-04-27 11:43 大胖头 阅读(146) 评论(0) 推荐(0) 编辑
摘要: protected void Page_Load(object sender, EventArgs e) { DirectoryEntry de = new DirectoryEntry(ldap, admin, pwd); TreeNode root = new TreeNode("root", "root"); TreeNode tn; foreach (DirectoryEntry chil... 阅读全文
posted @ 2007-04-27 11:40 大胖头 阅读(617) 评论(0) 推荐(0) 编辑
  2006年12月6日
摘要: public class InstanceFactory { public static DBFactory Instance(string InstanceType) { Type t = Type.GetType(InstanceType); DBFactory DBInstance = (DBFactory)Activator.CreateInstance(t); return DBInst... 阅读全文
posted @ 2006-12-06 21:40 大胖头 阅读(313) 评论(0) 推荐(0) 编辑
  2006年11月20日
摘要: public abstract class DBFactory { public abstract IDbConnection GetDBConnection(); public abstract IDbCommand GetDBCommand(); public abstract IDbDataAdapter GetDataAdapter(IDbCommand dic); }class DBOp... 阅读全文
posted @ 2006-11-20 17:39 大胖头 阅读(301) 评论(0) 推荐(0) 编辑
  2006年11月19日
摘要: public abstract class DBFactory { public abstract IDbConnection GetDBConnection(); public abstract IDbCommand GetDBCommand(); public abstract IDbDataAdapter GetDataAdapter(IDbC... 阅读全文
posted @ 2006-11-19 19:42 大胖头 阅读(153) 评论(0) 推荐(0) 编辑
  2006年11月8日
摘要: class test { private static string root; public static void showXML(string path) { XmlDocument xd = new XmlDocument(); xd.Load(path); XmlNodeList xnl = xd.DocumentElement.ChildNodes; root = xd.FirstC... 阅读全文
posted @ 2006-11-08 22:52 大胖头 阅读(524) 评论(1) 推荐(0) 编辑
  2006年11月3日
摘要: 在C#.net中如何操作XML需要添加的命名空间:using System.Xml;定义几个公共对象:XmlDocument xmldoc ;XmlNode xmlnode ;XmlElement xmlelem ;1,创建到服务器同名目录下的xml文件:方法一:xmldoc = new XmlDocument ( ) ;//加入XML的声明段落xmlnode = xmldoc.CreateNod... 阅读全文
posted @ 2006-11-03 16:39 大胖头 阅读(413) 评论(1) 推荐(0) 编辑