文章分类 -  ASP.NET

摘要:•Reference the Data Access block assemblies• Configure Data Access settings• Add the required Namespace• Create an instance of Database• Perform actions using the Database instance(1) includingMicrosoft.Practices.EnterpriseLibrary.Common.dll RequiredMicrosoft.Practices.Unity.dll RequiredMicrosoft.Pr 阅读全文
posted @ 2011-06-16 16:58 天添 阅读(432) 评论(0) 推荐(1)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DelegateAndEvent{ public delegate void nDelegate(); public delegate void sDelegate(string str); public delegate void mulDelegate(string str); class Program { public delegate void eventDelegate(string str); pu 阅读全文
posted @ 2011-06-14 19:03 天添 阅读(310) 评论(0) 推荐(0)
摘要:Application.lock();if(Application["count"] == null){ Application["count"] = 1;}else{ Application["count"] += 1;}Application.unlock(); 阅读全文
posted @ 2011-06-10 17:44 天添 阅读(124) 评论(0) 推荐(0)
摘要:function analyse(currentOperator,seriesName) { var url= "Analyse.aspx?CurrentOperator="+currentOperator+"&SeriesName="+seriesName; $('#dialog').empty(); var div = $('#dialog').append("<iframe frameborder=0 align=center src="+url+" scrolling=& 阅读全文
posted @ 2011-06-01 17:58 天添 阅读(110) 评论(0) 推荐(0)
摘要:public void CreateExcel(DataTable dt, string FileName, int pageSize, int pageNum) { HttpResponse resp; resp = Page.Response; resp.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312"); resp.ContentType = "application/ms-excel"; resp.AddHeader("Content-Disposition" 阅读全文
posted @ 2011-04-08 17:08 天添 阅读(197) 评论(0) 推荐(0)