調試通了在vs2005下,<%@ Import Namespace="System.Data" %><%@ Import Namespace="System.Data.SqlClient" %><script runat="server" language="vbscript"> Sub On_click(ByVal sender As Object, ByVal e As EventArgs) Dim conn As New
1、首先你要下載一個itextsharp.dll http://somewebguy.wordpress.com/2009/05/08/itextsharp-simplify-your-html-to-pdf-creation/2、在那個網址裡面找一個HtmlToPdfBuilder.cs檔案,把它引入自己的工程3、建一個PdfResult類public class PdfResult : ActionResult { public override void
using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls;
Exporting DataGrids to Excel... Ken Walker's article on exporting DataSets to Excel has proved very popular. This article by Mike Dolan presents a different technique for getting a DataGrid rather than the DataSet into Excel. We believe you will
By: John Kilgo Date: February 22, 2003Download the code. Printer Friendly Version The inbuilt paging mechanism of the ASP.Net datagrid control is convenient, but can be very inefficient. The problem with the inbuilt system is that the entire
The Repeater control is a lightweight control but has many uses and has become a favorite of mine. Many developers do not realize that you can use templates with the Repeater. It has a limited set of templates, with few properties, but you can make
By: John Kilgo Date: December 10, 2002Download the code. Printer Friendly Version In this example you will see how to send email and one way of sending attachments from within an .aspx file. The text boxes for the various components of the email