CREATE FUNCTION [dbo].[Check_ID] 
(
 @ID nvarchar(10)
)
RETURNS nvarchar(20)

level168 發表在 痞客邦 留言(0) 人氣()

        protected string GetClientIP()

        {

level168 發表在 痞客邦 留言(0) 人氣()

        protected void btnExcel_Click(object sender, EventArgs e)         {             Response.Clear();             Response.Write("<meta http-equiv=Content-Type content=text/html;charset=utf-8>");//防中文亂碼             Response.AddHeader("content-disposition", "attachment;filename=xxx.xls");//excel檔名

level168 發表在 痞客邦 留言(0) 人氣()

function isValidURL(url){
    var RegExp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;

    if(RegExp.test(url)){
        return true;
    }else{

level168 發表在 痞客邦 留言(0) 人氣()

contentWindow屬性是指指定的frame或者iframe所在的window對象

在IE中iframe或者frame的contentWindow屬性可以省略,但在Firefox中如果要對iframe物件進行編輯,則必須指定contentWindow屬性。

level168 發表在 痞客邦 留言(0) 人氣()

<embed id='music' src='' hidden="true" loop="true" Volume="0" autostart="false"></embed>

~~~~~~~~~

var moj=document.getElementById('music'),e=''; //抓到物件

e="<table border='1'>"

for(var pr in moj)//用 for in 列出

level168 發表在 痞客邦 留言(0) 人氣()

Dim Db As ADODB.Connection

Set Db = New ADODB.Connection

connstr = "Provider=sqloledb ; Data Source=127.0.0.1,1433;Initial Catalog=dbName;Persist Security Info=True;User ID=123;Password=456"

Db.Open connstr

level168 發表在 痞客邦 留言(0) 人氣()

C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5

level168 發表在 痞客邦 留言(0) 人氣()

select  Rank() OVER (ORDER BY 排序的欄位名稱) AS RowNum from table

PS.有錯誤訊息產生[不支援 OVER SQL 建構或陳述式。]不理它 直接執行看結果

level168 發表在 痞客邦 留言(0) 人氣()

這個方法必需先建立一個要動態產生的控制項,並將index設成0,然後就可以由程式來動態建立控制項陣列了。
1.在form1建立一個Text1的控制項,將屬性Index設為0,此控制項變成控制項陣列0。
2.利用Load 控制項(index)的方式來建立控制項。
For Example:
在Form_Load中輸入以下程式:

level168 發表在 痞客邦 留言(0) 人氣()

  Dim   txt1()   As   VB.textbox   

  Dim   i   As   Integer 

  Private   Sub   Command1_Click()

  ReDim   Preserve   txt1(i)   As   VB.textbox

  Set   txt1(i)   =   Controls.Add("VB.textbox",   "txt"   &   i)

level168 發表在 痞客邦 留言(0) 人氣()

引用 using System.Diagnostics;
ProcessStartInfo Info2 = new ProcessStartInfo();
Info2.FileName = "xxx.bat";//執行的檔案名稱
Info2.WorkingDirectory = @"d:\test";//檔案所在的目錄
Process.Start(Info2);//

level168 發表在 痞客邦 留言(1) 人氣()

1 2 3
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。