摘要:
http://dev.mjxy.cn/a-How-to-receive-the-return-value-stored-procedure.aspxASP.NET 里接收存储过程的返回值,需要定义参数. 而不是 ExecuteNoQuery的结果.using (SqlConnection cn = new SqlConnection(this.ConnectionString)) { SqlCommand cmd = new SqlCommand("Get4LayerIsA", cn); cmd.CommandType = CommandType.StoredProcedu 阅读全文
摘要:
转载:http://dev.mjxy.cn/a-How-to-calculate-the-return-time-of-the-page.aspx服务器端开始计时:ViewData["result"] = DateTime.Now.TimeOfDay.TotalMilliseconds;页面最后调用脚本计算<span id="times" title="<%:ViewData["result"]%>"><%:ViewData["result"]%></s 阅读全文
摘要:
转载:http://dev.mjxy.cn/a-Calendar-calendar-control-multiple-dates-selection.aspx//处理Calendar1的SelectionChanged事件 protected void Calendar1_SelectionChanged(object sender, EventArgs e) { List<DateTime> lst = SelectDate; if (lst.Contains(Calendar1.SelectedDate)) { lst.Remove(Calendar1.SelectedDate 阅读全文
摘要:
转载地址:http://dev.mjxy.cn/a-How-to-customize-the-IHttpModule.aspx使用自定义的 IHttpModule 方法可以实现自己想要的url重写功能。1. 自定义类 HttpModule 继承 IHttpModule实现接口的Init方法,在方法中处理BeginRequest事件。public class HttpModule : IHttpModule { #region IHttpModule 成é员± public void Dispose() { } public void Init(HttpApplication 阅读全文
摘要:
转载:http://dev.mjxy.cn/a-How-to-customize-the-IHttpHandler.aspx定义处理HttpHandler 让ModuleX加载的时候稍有延迟。public class DelayDownloadHandler :IHttpHandler { public bool IsReusable { get { return true; } } public void ProcessRequest(HttpContext context) { string path = context.Server.MapPath(context.Request.Pat 阅读全文