posted @ 2004-11-25 09:54
文章分类 - ASP.NET
摘要:随着微软.NET的流行,ASP.NET越来越为广大开发人员所接受。作为ASP.NET的开发人员,我们不仅需要掌握其基本的原理,更要多多实践,从实践中获取真正的开发本领。在我们的实际开发中,往往基本的原理满足不了开发需求,我们更多的要积累一些开发技巧,本文就向大家介绍一些实用技巧,希望对大家的开发有所裨益。 1. ~ 的用法 一般的情况下,我们是使用./../ 这样的相对路径来确定和规划我...
阅读全文
摘要:/**///////將aspx頁面以html輸出///publicclassClass2{stringcurUrl="";//當前路徑;System.Web.HttpContextcontext=HttpContext.Current;//當前頁System.Net....
阅读全文
posted @ 2004-11-25 09:35
摘要:今天遇到一個這樣的問題就是點擊後要返回到上一頁中去,便又不知道上一頁是什麼來的使用.net中的Request.UrlReferrer這個屬性只能獲得到所請求的頁面的地址(且只能是aspx文件的,還不能用winow.open打開這樣形式的)所以我想了個好辦法一下搞定思路是先設定一個變理用來存儲客戶端是第幾次發出請求private int iCount = 0;在每次加載時即Page_Load時將這個...
阅读全文
posted @ 2004-11-17 18:28
摘要:#region 獲得要輸出的Excel表 ExcelTable private DataTable ExcelTable() { DataTable newTable = new DataTable(); newTable.Columns.Add(new DataColumn("編號",typeof(string))); newTable.Columns.Add(new Dat...
阅读全文
posted @ 2004-10-12 09:31
摘要:OutPutExcel OutPutExcel.aspx.csusing System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionSta...
阅读全文
posted @ 2004-10-12 08:03
摘要:"^\\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\\d+) ¦(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\\d+$" //整数 "^\\d+(\\.\\d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9]+\\.[...
阅读全文
posted @ 2004-10-12 08:03
摘要:using System; using System.Web; using System.IO; using System.Data; using System.Drawing; using System.Drawing.Text; using WebFrame.Config; namespace TaiPedia.Services { #region 上傳文件類型 public enum UpT...
阅读全文
posted @ 2004-10-12 08:02
浙公网安备 33010602011771号