随笔分类 -  asp.net

sql2005
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->select [name],create_date,modify_date FROM sys.all_objects where type_desc = 'SQL_STORED_PROCEDUR... 阅读全文

posted @ 2009-02-16 13:43 jueban's space 阅读(148) 评论(1) 推荐(0)

可拖动,ModalPopup
摘要:/// Type.registerNamespace("DDT"); DDT.Loading = function(element) { DDT.Loading.initializeBase(this, [element]); this.ClassName=""; } DDT.Loading.prototype = { initialize: function() ... 阅读全文

posted @ 2008-03-18 16:16 jueban's space 阅读(625) 评论(0) 推荐(0)

SiteMapProvider
摘要:各个 ASP.NET 站点导航组件之间的关系图 而我们这次就是编程图中的"自定义站点地图提供程序".... 我的DAL层是基于NBear的.... Category实体定义如下: [AutoPreLoad] public interface Category : Entity { [PrimaryKey] int ID { get; } ... 阅读全文

posted @ 2007-10-30 17:52 jueban's space 阅读(713) 评论(1) 推荐(1)

记录错误日志
摘要:using System.Diagnostics; protected void Application_Error(Object sender, EventArgs e) { string errMsg = ""; errMsg += "Application ErrorAn unexpected error has occurred in this Application... 阅读全文

posted @ 2007-10-22 14:26 jueban's space 阅读(189) 评论(0) 推荐(0)

asp.net 生成html静态页
摘要:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts... 阅读全文

posted @ 2007-10-22 14:00 jueban's space 阅读(233) 评论(0) 推荐(0)

asp.net XML操作类
摘要:public class XmlControl { protected string strXmlFile; protected XmlDocument objXmlDoc = new XmlDocument(); public XmlControl(string XmlFile) { // // TODO: 在这里加入建构函式的程序代码 // try { objXml... 阅读全文

posted @ 2007-10-22 13:56 jueban's space 阅读(442) 评论(0) 推荐(0)

ASp.NET 2.0中Page事件的执行顺序
摘要:Page 执行中将按照如下顺序激活事件: Page.PreInit Page.Init Page.InitComplite Page.PreLoad Page.Load Page.LoadComplete Page.PreRender Page.PreRenderComplete 如果页面从令一个页面继承,如BasePage:System.Web.UI.Page,在B... 阅读全文

posted @ 2007-10-22 13:54 jueban's space 阅读(183) 评论(0) 推荐(0)

防止一个用户重复登陆
摘要:string key = TextBox1.Text; //用户名文本框设为cache关键字 string uer = Convert.ToString(Cache[key]); //读取cache中用户相应的值 //判断cache中是否有用户的信息,如果没有相关的值,说明用户未登陆 if (uer == null || uer == String.Empty) { //定义cach... 阅读全文

posted @ 2007-10-22 13:52 jueban's space 阅读(229) 评论(0) 推荐(0)

导航