上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: Just add empname, gender in table. So let's fill it with some data.insert into tblGenderEMP values (1, 'mohan', 'M' ,52)insert into tblGenderEMP values (2, 'mohini', 'F',65)insert into tblGenderEMP values (3, 'suraj', 'M',500)insert into tblGenderE 阅读全文
posted @ 2014-03-25 15:36 happyu0223 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Download source file (C#) - 1.6 KBDownload demo - 14.4 KBDownload source [VB.NET] - 1.98 KBDownload demo [VB.NET] - 15 KBIntroductionDisplaying data in tabular form is an essential part of any application nowadays. But sometimes you need to display a huge amount of data in terms of number of rows. I 阅读全文
posted @ 2014-03-25 15:30 happyu0223 阅读(348) 评论(0) 推荐(0) 编辑
摘要: The Pivot MethodsFirst - Simple InversionRead all data, and return all columns as lines and lines as columns.The X axis column provided is used as the column header, and some columns may be ignored in the process, if desired so. Collapse | Copy Code/// /// Gets a Inverted DataTable/// /// DataTable 阅读全文
posted @ 2014-03-25 15:28 happyu0223 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Have a look at ExeclPackagePlus http://epplus.codeplex.comIt's great for these kinds of scenarios. private void DumpExcel(DataTable tbl) { try{ // OfficeOpenXml.ExcelPackage using (ExcelPackage pck = new ExcelPackage()) { //Create the worksheet ... 阅读全文
posted @ 2014-03-25 11:40 happyu0223 阅读(339) 评论(0) 推荐(0) 编辑
摘要: you will want to make certain that if you take a backup of master on a server in your environment that you aren’t interfering with any existing backup plan:BACKUP DATABASE [master] TO DISK = N'C:\SQL\Backups\master.bak'Next we will create a test login as part of our practice run:USE [master] 阅读全文
posted @ 2014-03-25 10:45 happyu0223 阅读(246) 评论(0) 推荐(0) 编辑
摘要: ISSUE:For example, one page accessed as:{physicalPath}/popup/Page1.aspx{projectPath}/popup/Page1.aspx {serverPath}/apsx/external/Page/{id}Route is registered in Global.asax as:routes.MapPageRoute("ViewPage","external/Page/{AccessKey}/","~/popup/Page1.aspx",false,newRout 阅读全文
posted @ 2014-03-25 09:47 happyu0223 阅读(206) 评论(0) 推荐(0) 编辑
摘要: The image to the left shows the kind of error report I saw when trying to plug in a JQuery DatePicker. The JQuery code was minimal so I knew the problem was not with the code.I had seen similar problems with JavaScript a few days before, so I was determined to find the culprit.Here is the HTML for t 阅读全文
posted @ 2014-03-21 14:49 happyu0223 阅读(348) 评论(0) 推荐(0) 编辑
摘要: Download Source Code Live Demo When you display records using ASP.NET GridView control it displays all the columns on the page and often you want to display only few columns in GridView due to the available space on the page. You can easily achieve this functionality by adding your own columns dec.. 阅读全文
posted @ 2014-03-21 13:26 happyu0223 阅读(356) 评论(0) 推荐(0) 编辑
摘要: LINQ (language integrated query) is one of the new features provided with VS 2008 and .NET 3.5. LINQ makes the concept of querying data a first class programming concept in .NET, and enables you to efficiently express queries in your programming language of choice.One of the benefits of LINQ is that 阅读全文
posted @ 2014-03-19 19:54 happyu0223 阅读(606) 评论(0) 推荐(0) 编辑
摘要: CREATEPROCEDURE [dbo].[Profile_GET]@PageSizeint=null, @CurrentPageint=null, @SortExpressionnvarchar(max)=nullASBEGINSETNOCOUNTONDECLARE @SqlString nvarchar(max)Declare @UpperBand intDeclare @LowerBand int SET @LowerBand =(@CurrentPage - 1)* @PageSizeSET @UpperBand =(@CurrentPage * @PageSize)+ 1 BEGI 阅读全文
posted @ 2014-03-19 11:21 happyu0223 阅读(136) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页