Time of Update: 2018-12-08
解決辦法:寫一個aspx頁面, 在aspx 頁面只留下這一句 複製代碼 代碼如下:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Data.aspx.cs" Inherits="Data" %> cs檔案如下: public partial class Data : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {
Time of Update: 2018-12-08
<script language="vbscript" runat="server"> '============================================================ '作者:做回自己 '時間:2005-3-15 ============================================================ Class XMLClass Private objXml Private xmlDoc Private
Time of Update: 2018-12-08
現在有一個xml,格式如下: <date> <item> <id> 1 </id> <name> ABC </name> </item> <item> <id> 2 </id> <name> cde </name> </item> <item> <id> 3 </id> <name> efg &
Time of Update: 2018-12-08
在伺服器端利用 JavaScriptSerializer serializer = new JavaScriptSerializer(); return serializer.Serialize(obj); 對對像序列化, 對於時間類型得出結果為:\/Date(1216796600500)\/ 用戶端解析的方式為: 複製代碼 代碼如下:function renderTime(data){ var da = eval('new ' +
Time of Update: 2018-12-08
前幾天,為了增強本站的SEO,著手把另一個網域名稱:www.kanshule.com下的所有頁面301轉向到www.jb51.net下。 由於本站目前只有一個部落格,於是從部落格上入手。 思路很簡單,擷取當前瀏覽頁面的網域名稱,如果是需要轉向的網域名稱,再替換網域名稱部分,做為新地址來301轉向。 代碼如下:複製代碼 代碼如下:<%Dim
Time of Update: 2018-12-08
本文章主要介紹SqlHelper使用。 每個項目都要用到資料訪問層,我做的也不例外,但是我把資料訪問層做成獨立項目,沒有什麼太大的目的,資料訪問層,僅僅做資料訪問用,不包含任何邏輯。 為什麼要使用資料訪問層? 如果不使用資料訪問層,那麼你的代碼裡會出現很多SqlConnection、SqlCommand、SqlDataReader、Open、
Time of Update: 2018-12-08
複製代碼 代碼如下:using System; using System.Web; using System.Web.UI; using System.Text.RegularExpressions; namespace STH.function { /// <summary> /// UbbCode 的摘要說明。 /// </summary> public class UbbCode { Root theroot=new Root(); HttpContext
Time of Update: 2018-12-08
複製代碼 代碼如下:using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using
Time of Update: 2018-12-08
<html> <head> <title>擷取ACCESS資料庫表名_www.jb51.net</title> </head> <body style="text-align:left;margin-left:50px;font-family:'arial';font-size:12px"> <form style="padding:5px;margin:5px;margin-left:0px" name="get"
Time of Update: 2018-12-08
for迴圈的格式為:for(【初始設定式】;【條件運算式】;【迭代運算式 】){ //語句塊}其中:【初始設定式】;【條件運算式】;【迭代運算式
Time of Update: 2018-12-08
一..Net Framework 1. 如何獲得系統檔案夾 使用System.Envioment類的GetFolderPath方法;例如: Environment.GetFolderPath( Environment.SpecialFolder.Personal ) 2. 如何獲得正在執行的exe檔案的路徑 1) 使用Application類的ExecutablePath屬性 2)
Time of Update: 2018-12-08
1、 foreach (Control c in this.rptTables.Controls) { CheckBox cbx = (CheckBox)c.FindControl("cbxId"); TextBox tbx = (TextBox)c.FindControl("tbxTableName"); if (cbx != null) { if (cbx.Checked == true) {
Time of Update: 2018-12-08
edit_rs_cmd.CommandText = "SELECT * FROM dbo.usertable WHERE id = ?" 這時候要把不能顯示的欄位,在放到sql中,顯示出來 edit_rs_cmd.CommandText = "SELECT *,[不能顯示的欄位],[不能顯示的欄位], FROM dbo.usertable WHERE id = ?" 後來又找到的方法 edit_rs.Fields.Item("opentime").Value 把
Time of Update: 2018-12-08
最近在給客戶做一個客戶管理系統時遇到一個問題: 使用下列這個連接字串時情況如下 connstr="DBQ="+server.mappath("db/#kehumsg.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};" set conn=server.createobject("ADODB.CONNECTION") conn.open connstr 有一個聯結查詢, 中用到要調用第二個表的id, 按正常來說可以這麼調rs(
Time of Update: 2018-12-08
string strField = "id|className|classAdd"; string strKeyWords = this.tbxKeyWords.Text.Trim(); string strSql = dbexe.searchText("select * from class", strField, strKeyWords); 經常用到多欄位的模糊查詢,上面的函數可以實現,例如strKeyWords值為“指令碼之家”時,可以輸出: select * from class
Time of Update: 2018-12-08
這個版本離上個版本有些時日了,最近事情太多,這兩天剛空閑下來就趕緊弄了下 要查看上個版本請點擊這裡 在今天發布的版本裡對aspx/html頁面嵌入的javascript也支援了,你可以摺疊內嵌的javascript,並且可以看到內嵌javascript 裡面的函數列表,對於程式碼摺疊功能進一步完善了,換了另外一種方法處理程式碼摺疊功能 我們做完case以後為了最佳化網路往往要刪除注釋空白,這完全是個體力活,當然,現在有很多小工具甚至網頁都可以做到,但是如果
Time of Update: 2018-12-08
1、IsStartupScriptRegistered:對象是否註冊了啟用指令碼。 2、IsClientScriptBlockRegistered:對象是否註冊了用戶端指令碼塊。 3、IsClientScriptIncludeRegistered:對象是否註冊了用戶端指令碼包含。 第一個例子: string info = "<script>alert('你好嗎?');</script>";
Time of Update: 2018-12-08
複製代碼 代碼如下://由gridviw匯出為Excel public static void ToExcel(System.Web.UI.Control ctl) { HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=Excel.xls"); HttpContext.Current.Response.Charset = "UTF-8";
Time of Update: 2018-12-08
在網上找了很久也沒有找到例子,沒辦法了,想偷懶也偷不成了,還是自己老老實實的寫一個吧。不多廢話,下面請看我做的詳細方法。 1。無限級分類肯定要資料庫支援啦,使用者可以動態添加他們的分類嘛,下面是資料庫的結構:資料庫主要有三個欄位,這是最基本的了。第一個是主鍵,第二個是分類的名稱了,第三個是父級目錄id號。 2。成品的:(大家最關心的是不是這個啊?看看是什麼樣子再看程式怎麼吧) 看!!就長這個模樣啦,這個層次關係就是上面那個資料所顯示的結果。怎麼樣?還行吧。。。
Time of Update: 2018-12-08
asp生日自動提醒小程式 用ASP編寫,調試通過,使用方便-asp birthday automatically remind small programs with the preparation of ASP, debug, easy to use方法一: