function detectBrowser()//判斷是否用IE瀏覽器
 { 

包爾伯 發表在 痞客邦 留言(0) 人氣()

若有一 string strA=tom’s要輸入資料庫

MS-SQL為strA=strA.replace(”‘”,”/’”)

包爾伯 發表在 痞客邦 留言(0) 人氣()

範例

在postgre dos模式下

包爾伯 發表在 痞客邦 留言(0) 人氣()

Displaying the Files in a Directory

Public doc As String = “..\Data\”

包爾伯 發表在 痞客邦 留言(0) 人氣()

 Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging
        GridView1.PageIndex = e.NewPageIndex

包爾伯 發表在 痞客邦 留言(0) 人氣()

這東西找了很久,問了老朋友才發現
取得MultiLine TextBox 有換行資料 必須要用以下這一行

包爾伯 發表在 痞客邦 留言(0) 人氣()

Example #1-Create a div with both vertical and horizontal scroll bars:

<div style=”width:300px;height:100px;overflow:auto;”>some text</div>

包爾伯 發表在 痞客邦 留言(0) 人氣()

* 與各個function程式碼相連的設定:
   <form id=”FORM1″ name=”form1″ onsubmit=”return checkform(document.forms[0]);” action=”WebForm1.aspx”

包爾伯 發表在 痞客邦 留言(0) 人氣()

<script type=”text/javascript”>

function CutToClipboard()

包爾伯 發表在 痞客邦 留言(0) 人氣()

若您的DropDownList項目來自資料庫, 您可以這麼寫:
DataSet ds = ….;

包爾伯 發表在 痞客邦 留言(0) 人氣()

電話號碼驗證
[.Net]

包爾伯 發表在 痞客邦 留言(0) 人氣()

1.要先建立檔案,ex:Test.txt
2.然後必須要開權限給Everyone

包爾伯 發表在 痞客邦 留言(0) 人氣()

設定文字欄位的欄位驗證 : 只能輸入數字
<script language=”JavaScript” type=”text/javascript”> <!–

包爾伯 發表在 痞客邦 留言(0) 人氣()

Limit image Width

<script language=”JavaScript” type=”text/javascript” >

包爾伯 發表在 痞客邦 留言(0) 人氣()

//寫檔案
 function WriteToFile(text) {

包爾伯 發表在 痞客邦 留言(0) 人氣()