随笔分类 - ASP.NET
摘要:In one of my previous articles I explained Export GridView with Images from database to Word, Excel and PDF FormatsIn this article I am explaining how to Export GridView to Microsoft Word, Microsoft Excel and Portable Document Format (PDF) which has images and pictures in it. Here I am exporting a G
阅读全文
摘要:TheGridViewis populated from code behind inPage_Loadevent and using jQuery we can re-order jQuery row. In every row ofGridView, there will beUpArrowbutton andDownArrowbutton. ClickingUpArrowbutton, the associated row will be moved up and clickingDownArrowbutton, the associated row will be moved down
阅读全文
摘要:ALTER PROCEDURE [dbo].[GetAll]ASBEGIN SET NOCOUNT ON; SELECT * FROM Customers SELECT * FROM Orders SELECT * FROM ProductsENDThe Stored PROCEDURE retur...
阅读全文
摘要:issue:I wanted to create a web control which has collection featured in the ASPX. I have code below which has a problem.I seem to turn off and objects collection editor(collection stable).But I object design information Design Time at runtime what you can not getwhen I turn off the project.So in a w
阅读全文
摘要:You need to escape the backslashes, e.g.,var commandtoRun ="C:\\Documents and Settings\\User\Desktop\\ABCD.exe";Update:This works fine on my machine:var oShell =newActiveXObject("Shell.Application");var commandtoRun ="C:\\Windows\\notepad.exe"; oShell.ShellExecute(comma
阅读全文
摘要:' /> ' runat="server" ImageUrl='' Height="120px" Width="120px" /> '));" />...
阅读全文
摘要:In this post I would to focus on ASP.Net Health monitoring and Web events.Health monitoring is another mechanism to capture/abstract logging.In most cases with our ASP.Net applications we need to trace what happens when they are up and running. Have a look at a previous post of mine where I talk abo
阅读全文
摘要:.banner > img{ /*background: url('myimage);*/ background-repeat:no-repeat; background-position: top center; background-size: cover; /*background-size: 100%;*/ -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover;}please refer to the link for details:Bootstrap
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:HeaderCell=newTableCell();HeaderCell.Text="Employee";HeaderCell.ColumnSpan=2;HeaderGridRow.Cells.Add(HeaderCell);please check out the link for more information:How to add Header and Subheader in Gridviewhttp://www.aspsnippets.com/Articles/Merge-Merging-GridView-Header-Columns-Cells-by-addi
阅读全文
摘要:In this article we are going to see how to serialize and deserializean object as binary data using the binary formatter.Step 1: Used Namespaceusing System; using System.Collections; using System.IO; using System.Runtime.Serialization.Formatters.Binary; Step 2: Usage protected void Page_Load(object .
阅读全文
摘要:So for example the goal was to have a site: www.site.com expose a www.site.com/company1 and a www.site.com/company2 and have the content from “www.company1.com” served for the first one and “www.company2.com” served in the second one. Furthermore we would like to have the responses cached in the ser
阅读全文
摘要:在用GridView控件时,我们经常会碰到获取当前行的索引,通过索引进行许多操作。例如,可以获得当前行某一个控件元素;设置某一元素的值等等。下面结合实例介绍几种获得GridView当前行索引值的方法。实例:①目的:获取GridView中RowCommand的当前索引行。②前台页面:在GridView中添加一模版列,里面添加一个LinkButton控件。代码:'>签入签出小提示:如果在后台代码中用e.CommandArgument取值的话,前台代码就必须在按钮中设置CommandArgument的值,值为绑定的数据库字段。如://因为在客户端中就已经将LinkButton的Comm
阅读全文

浙公网安备 33010602011771号