Time of Update: 2018-12-05
一、前台Js方式調用(base64.js自己在網上找吧,就不上貼了)<html><head><title></title><script language="javascript" type="text/javascript" src="base64.js" ></script></head><body><div><textarea id="the_code"
Time of Update: 2018-12-05
這個問題真讓我鬱悶,調試了一個小時也沒有找到問題.後來在同事的協助下才解決.值得注意!由於這個頁面是後來加的,客戶不想重新編譯,所以在寫頁面時就把CS也放在了ASPX頁面裡,我定義了兩個隱藏文本域共置runat="server"在Page_Load()中就是取不到它們的值,後來發現是忘記把它兩個文本域放到<form id="" runat="server"></form>中了.-----這種問題在編譯時間也不報錯,真是鬱悶! 如果不是這個問題,那就請在搜搜了.
Time of Update: 2018-12-05
修改後: 可以定義標題 || 自訂Logo.(下載PopupBox)說明: //標題方式顯示 //PopupBox1.TitleShow = true; //PopupBox1.Title = "我們標題"; //圖片方式顯示 PopupBox1.ImageShow = true; PopupBox1.ImagsName = "=.gif";// 注=.gif為Logo圖片的名稱,Logo圖片必須與popBox頁面放置同一級目錄 PopupBox1.
Time of Update: 2018-12-05
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META
Time of Update: 2018-12-05
using System;using System.IO;using System.Collections.Generic;using System.Linq;using System.Text;namespace CommHelper{ public class FilesAccess { public FilesAccess() { } #region /// <summary> /// 把檔案內容寫入到物理位置 /// </summary> //
Time of Update: 2018-12-05
今天無事,看了看benSoft.web.WebControls.PopupBox在.Net2.0下編譯後,出現彈出為空白問題。做以下總結:原因是些屬性引起的:public string preMark{ get { string clientID = base.NamingContainer.ClientID; clientID = (clientID == null) ? "" : clientID; return
Time of Update: 2018-12-05
對於早期使用編寫ASP的程式員來說,都會很明確它們兩個有什麼不同;但對於沒有接觸ASP直接使用.NET的程式員對它們可能就會有些模糊。其實它們兩個的區別很好分辨,GET方式就是我們常用的在URL後面用?號串連&號分割的方式;缺點:安全性低,傳輸的長度受限制,在伺服器端接收可以使用Request.QueryString[parm]。POST方式的處理是隱式的,在我們不知覺中.NET已經通過HTTPHEADER,傳遞到了伺服器,可以通過Request.Form[parm]接收。
Time of Update: 2018-12-05
using System;using System.Security.Cryptography;using System.Collections.Generic;using System.Linq;using System.Text;namespace CommHelper{ public class CEntrypt { private static string sKeyForEncryptTitle; public CEntrypt() { } #region 解密Base64
Time of Update: 2018-12-05
using System;using System.Windows.Forms;using System.Threading;namespace _Delegate{ delegate void GetDelegate(); delegate void DelegateStart(); delegate void TimeSprogressStep(int index); delegate void DelegateFinished(string Message);
Time of Update: 2018-12-05
.Net寫的一個小工具: 說明:(下載) 一.擷取修改(擷取修改過的檔案)1.程式路徑:要擷取檔案的目錄2.儲存路徑:要儲存到什麼位置(會產生以結束時間為檔案夾名)3.更新備忘:儲存以結束時間+備忘為檔案夾名4.起始時間/結束時間:擷取這一時間段所在修改過的檔案二.更新程式(把新檔案 更新到指定位置,並把被更新的檔案做備份,存到指定位置)1.更新到:指定更新至的目錄2.新檔案:需要更新的檔案3.備份到:備份檔案至指定位置
Time of Update: 2018-12-05
/// <summary> /// 轉換Excel檔案轉換為DataSet /// </summary> /// <returns>DataSet</returns> private DataSet GetExcelData() { string strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data
Time of Update: 2018-12-05
1. Select Top PageSize * From Table where biaoshi not in (Select Top (PageIndex-1)*PageSize biaoshi From Table )2.CREATE PROCEDURE [dbo].[UP_Common_Pager]( @tblName nvarchar(255), -- 表名 @Fields nvarchar(1000) = '*', -- 需要返回的列 @OrderField
Time of Update: 2018-12-05
".*"="application/octet-stream" ".001"="application/x-001" ".301"="application/x-301" ".323"="text/h323" ".906"="application/x-906" ".907"="drawing/907" ".a11"="application/x-a11" ".acp"="audio/x-mei-aac" ".ai"="application/postscript" ".aif"="audio/
Time of Update: 2018-12-05
web.config關於sessionState節點的配置方案,sessionState有四種模式:off,inProc,StateServer,SqlServer。 1、off模式從字面上就可以看出這個是關閉模式,如果當前頁面不需要session的值,為了減少伺服器資源,你可以去掉Session的開銷。<sessionState mode="off">或者頁面上<%@ Page EnableSessionState="false"
Time of Update: 2018-12-05
.aspx<Html><head> <title></title> <script type="text/javascript"> var Div,xmlhttp; function getXmlHttp() { Div= document.getElementById("div1"); Div.innerHTML = "正在裝載欄目資料,請稍侯......
Time of Update: 2018-12-05
引用而來:分析的很透徹!悟了事件與委託似乎很難以理解,這是因為它們的使用方式與常用的編碼有很大的差別,例如通常編寫的都是同步代碼,調用一個類型的方法,會即刻出現方法執行的結果,這是符合邏輯的。但在某些情況中,同步代碼未必滿足需求,拿公用汽車來打個比方,如果交通管制中心希望每一輛公車到達一個網站時都發送給自己一個訊號以便自己能夠隨時掌握交通狀況,使用同步代碼,公汽對象肯定需要調用管制中心對象,這樣就出現了我們一直不願意看到的情況:兩個類型緊密地耦合在一起。既然要其它類型對自己的行為作出反應,親自調
Time of Update: 2018-12-05
function getItem(){ var str= $.ajax({ url: "Exec.aspx?flag="+Variables, async: false }).responseText; var dom=new ActiveXObject("Microsoft.XMLDOM"); dom.loadXML(xml); var t=dom.getElementsByTagName("item"); var
Time of Update: 2018-12-05
using System;using System.Web;using System.Collections.Generic;using System.Configuration;using System.Linq;using System.Xml;namespace CommHelper{ public class AppConfig { /// <summary> /// 獲得配置屬性的bool值 ///
Time of Update: 2018-12-05
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>無標題頁</title> <script
Time of Update: 2018-12-05
資料表值函式傳回值是一個表。 CREATE FUNCTION [dbo].[Split] (@str nvarchar(max),@spliter nvarchar(10))returns @tb table(Tmp nvarchar(256)) ASBEGINDECLARE @Num int,@Pos int, @NextPos intSET @Num = 0SET @Pos = 1WHILE(@Pos <= LEN(@str))BEGIN SELECT @NextPos =