as400下傳有亂碼

當as/400主機physical file的ccsid為65535時下傳會亂碼,必須指定轉碼表轉檔方可

string strConn = “Provider=IBMDA400.DataSource.1;Persist Security Info=False;User ID=soft;Data Source=168.224.244.31;Protection Level=None;Initial Catalog=";Transport Product=Client Access;SSL=DEFAULT;Force Translate=937;Default Collection=";Convert Date Time To Char=TRUE;Catalog Library List=";Cursor Sensitivity=3″;

string strSQL = “SELECT CSTNAM, CSTAD1, CSTAD2, CSTCTY FROM LibraryName.CUSTMSTR";

OleDbConnection conn = new OleDbConnection(strConn);

DataSet dtSet = new DataSet();

OleDbDataAdapter dtAdr = new OleDbDataAdapter(strSQL,conn);

dtAdr.Fill(dtSet,"Temp");

DataGrid1.DataSource = dtSet.Tables[0].DefaultView;

DataGrid1.DataBind();

張貼在 程式資源 | 發表留言

Joseph的畫

張貼在 未分類 | 發表留言

蠻不錯的產品

SparkLAN PTZ旋轉型IP Camera CAS-771 (商品編號:DGAK0G-A39920014)

     
   
     

     
   
     

   

    下一個商品  
◤01/07 整點特賣◢
SparkLAN Wired IP Camera CAS-771
白色咖啡壺造型,美觀實用
 
《01/07 整點開賣》
開始﹕01/07(星期五) 23:00
結束﹕01/10(星期一) 10:00
特價﹕網路價$7299.整點價↘$3999
活動結束保證調回原價

★PTZ旋轉型,鏡頭可垂直(50度)水平(300度)擺動
★被動式紅外線體溫偵測感測,小偷無所遁形
★數位家庭及保全監控的最佳應用 

建議售價$0 網路價 $3999   賣貴通報
分期價:除不盡餘數於第一期收取 信用卡ATMSmart Pay貨到付款 ibon 說明
 
30利率 每期$1333 27家
60利率 每期$666 19家
 
12期 分期 每期$351 8家
24期 分期 每期$183 13家
 
歡迎使用信用卡紅利折抵刷卡金 多家銀行
 
 

<!–

–>

 
  12345678910  
   
 
加購商品 –
我要加 $499 買 【加購】Lobos USB網路電話 LB-SP145(磁吸式壁掛設計)!
 
1 2
   
我要加 $599 買 Q-Mee企鵝facebook網路互動公仔(加購限定)!
 
1 2 3 4 5 6 7 8 9 10
   
我要加 $399 買 ESET NOD32 Antivirus 4防毒軟體-一年一用戶隨機版!
 
1 2 3 4 5 6 7 8 9 10
   
  看更多>
 
     
  贈品:  
     

1 SparkLAN WRTR-142 802.11g 無線路由器
   
 

 
 
本商品詳細介紹
 
  輕輕鬆鬆,安全監控
CAS-771攝影機是SparkLAN的主力產品之一,當設定完成後,您可在遠端瀏覽遠距影像,輕鬆掌握即時狀態。另外,CAS-771能以影片或圖像格式進行存檔,所以您可隨時調閱或分享畫面。內附的操作軟體,可讓您同時監看16部攝影機,且還能透過簡易的WEB操作介面,在遠端輕易的瀏覽影像或變更功能設定。

   
   
  產品特色
內建PTZ旋轉鏡頭
多重使用者權限設定
異狀偵測攝影,藉由E-mail發送通知
被動式紅外線體溫偵測感測
影像畫面擷取
   
 
  多元產品應用 

-不需複雜安裝,只需簡單設定即可運作
-關懷小孩長者作息,避免保母施暴
-監看寵物在家狀況
-加強防盜保全,監視工廠、樓梯間、無人機房
-遠端交通監測器,監視鄰里及各路口
-亦可應用於網路婚禮

 

   
   
  產品規格:

●長11cm 寬7.5cm 高9cm
網路介面: 1xRJ-45 LAN Port
●系統
CPU: ADMtek 5120
RAM: 32M Byte
Flash ROM: 4M Byte
OS: Linux
●攝影機模組規格
1/4″彩色CMOS感光元件
解析度: 640×480
鏡頭: 6.0mm F1.8
鏡頭角度: 水平300度,垂直50度
●影像
壓縮格式: MJPEG
被動式紅外線體溫偵測感測(最遠5公尺),影像倒置校正,同時監測16個動態影像視窗
解析度: 160×120,320×240,640×480
自動增益控制/自動白平衡/自動曝光
●內建警報蜂鳴器
System Start
Human Sensor Reaction
Timer Operation
Buzzer Button Pressed
●網路設定
IP Address Setting: Static IP,DHCP,PPPoE
HTTP Port Setting
Dynamic DNS Setting
UPnP
E-mail Alert Upload: 可設定兩個接收帳號
FTP Alert Upload
●Firmware更新
●System Log: 100 Items (Max.)
●支援USB v2.0 隨身碟
   
 
  關於SparkLAN
速連通訊及所屬正文集團為全球最大無線區域網路產品專業製造商,致力於無線寬頻網路的推展,並以SparkLAN的品牌形象行銷全球,擁有高品質的產品、堅強的研發團隊、優秀的生產技術、及售後服務是你最好的選擇。
   
  12345678910  

 
 
 
我要加 $ 499 【加購】Lobos USB網路電話 LB-SP145(磁吸式壁掛設計)
 
1 2
  ★磁吸式壁掛設計,讓收納更方便 ★同時支援多種網路通訊軟體 ★9種來電鈴聲設定,讓操作更加有趣 ★按一下即可靜音保留通話,保障通話隱私
   
 
我要加 $ 599 Q-Mee企鵝facebook網路互動公仔(加購限定)
 
1 2 3 4 5 6 7 8 9 10
  ★臉書動態即時報,掌握脈動零時差! ★告白、求婚、祝賀等多種小密技,網路傳情新鮮又有趣! ★安裝方便、操作簡單,一玩就上手!
   
 
我要加 $ 399 ESET NOD32 Antivirus 4防毒軟體-一年一用戶隨機版
 
1 2 3 4 5 6 7 8 9 10
  ◆採用啟發式 (Heuristics) 辨認病毒引擎 ◆支援Windows 7 ◆自動偵測病毒 ◆偵測速度驚人 ◆電腦資源佔用超小
   
 
我要加 $ 199 Panda Antivirus Pro 防毒軟體專業版 2010(鈦金版)- 1年1PC
 
1 2 3 4 5 6 7 8 9 10
  ◆支援Windows 7 ◆集體人工智慧-首創自雲端提供安全防護 ◆支援超過20國多國語言 ◆本產品為加價優惠,不可單獨銷售
   
 
我要加 $ 299 金山詞霸 2009繁體專業版
 
1 2 3
  ★32萬純正英美式真人語音 ★200萬中英會話句庫搜索 ★多語種網頁及文本翻譯 ★新增ORC取詞功能
   
 
我要加 $ 199 10插3孔電源延長線(1M)
 
1 2 3 4 5 6 7 8 9 10
  ◆線長長度:1M ◆插座接頭:3P(插孔)*10組(正反面各5組)/單切 ◆安檢認証:安檢合格 ◆產品特色:過載自動斷電保護
   
 
我要加 $ 199 Panda 2011 白金版雲端防毒軟體 -1年1PC專案版
 
1 2 3 4 5 6 7 8 9 10
  ◆支援Windows 7 ◆集體人工智慧-首創自雲端提供安全防護 ◆支援超過20國多國語言 ◆本產品為加價優惠,不可單獨銷售
   
 
我要加 $ 99 aibo USB 晶亮魔力鼠 光學滑鼠
 
1 2 3 4 5 6 7 8 9 10
  aibo USB 極致光學滑鼠
   
 
我要加 $ 199 三合一萬用線材整線收納固定組
 
1 2 3 4 5 6 7 8 9 10
 
   
 
我要加 $ 699 羅技 無線滑鼠 M305(銀色)
 
1 2 3 4 5 6
   
   
  △回TOP
 
 

   
  12345678910  

 

 
 
  本商品標準配備 + 贈品  
       
    ★CAS-771攝影機
★中文說明書
★網路線,電源供應線
★保固卡
★CD
其他贈品:
 ■SparkLAN WRTR-142 802.11g 無線路由器
張貼在 未分類 | 發表留言

datagrid如何不用每次都更新datasource才能換頁

利用dataset 寫成xml檔,再以readxml讀為dataset,尤其是連接遠端資料庫時能更有效率

<%@ Page Language="VB" debug=true%>
<%@ Register TagPrefix="wmx" Namespace="Microsoft.Matrix.Framework.Web.UI" Assembly="Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral, PublicKeyToken=6f763c9966660626″ %>
<%@ import Namespace="System.Data" %>
<script runat="server">

         Function MyQueryMethod() As System.Data.DataSet
                 Dim connectionString As String = “Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=xxxx.mdb"
                 Dim dbConnection As System.Data.IDbConnection = New System.Data.OleDb.OleDbConnection(connectionString)

                 Dim queryString As String = “SELECT * from main"
                 Dim dbCommand As System.Data.IDbCommand = New System.Data.OleDb.OleDbCommand
                 dbCommand.CommandText = queryString
                 dbCommand.Connection = dbConnection

                 Dim dataAdapter As System.Data.IDbDataAdapter = New System.Data.OleDb.OleDbDataAdapter
                 dataAdapter.SelectCommand = dbCommand
                 Dim dataSet As System.Data.DataSet = New System.Data.DataSet
                 dataAdapter.Fill(dataSet)
                Dim xmlFilename As String = “Temp.xml"  ‘ (需為可寫入的目錄)
                Dim streamWrite As New System.IO.FileStream (xmlFilename, System.IO.FileMode.Create )
                    dataset.WriteXml(streamWrite , XmlWriteMode.WriteSchema)
                    streamWrite.Close
                 Return dataSet
             End Function

        Function GetXml() As System.Data.DataSet
            Dim xmlFilename As String = “Temp.xml"
            Dim streamRead As New System.IO.FileStream(xmlFilename, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.Read)
            Dim dataSet As New System.Data.DataSet
            dataset.ReadXml(streamRead)
            Return dataSet
        End Function

         Sub DataGrid1_PageIndexChanged(sender As Object, e As DataGridPageChangedEventArgs)
            datagrid1.CurrentPageIndex = e.NewPageIndex

            datagrid1.dataSource=GetXml
            datagrid1.DataBind()
         End Sub

Sub Button1_Click(sender As Object, e As EventArgs)
    Dim dsM as System.Data.DataSet=MyQueryMethod
        datagrid1.dataSource=GetXml
        datagrid1.dataBind()
End Sub

    Sub Page_Load(sender As Object, e As EventArgs)
        if not page.IsPostBack  then

        end if
    End Sub

</script>
<html>
<head>
</head>
<body>
    <form runat="server">
        <asp:DataGrid id="DataGrid1″ runat="server" PageSize="20″ AllowPaging="True" OnPageIndexChanged="DataGrid1_PageIndexChanged">
            <PagerStyle mode="NumericPages"></PagerStyle>
        </asp:DataGrid>
        <asp:Button id="Button1″ onclick="Button1_Click" runat="server" Text="Button"></asp:Button>
        <!– Insert content here –>
    </form>
</body>
</html>

張貼在 程式資源 | 標記 | 發表留言

如何將DataTable 加入DataSet 範例

<%@ Page Language="VB" debug=true%>
<script runat="server">

    Sub Page_Load(sender As Object, e As EventArgs)
        Dim workTable As SYstem.Data.DataTable = new SYstem.Data.DataTable(“main")

            workTable.Columns.Add(“ID", Type.GetType(“System.Int32″))
            workTable.Columns.Add(“tot", Type.GetType(“System.Double"))

        Dim i  As Integer

        For i  = 0 To 10
            workTable.Rows.Add(New Object() {i , i *100})
        Next i
        Dim ds as new SYstem.Data.Dataset
        ds.Tables.Add (workTable)
        datagrid1.DataSource=ds
        datagrid1.DataBind()
   
    End Sub

</script>
<html>
<head>
</head>
<body>
    <form runat="server">
        <asp:DataGrid id="DataGrid1″ runat="server"></asp:DataGrid>
        <!– Insert content here –>
    </form>
</body>
</html>

張貼在 程式資源 | 標記 | 發表留言

HX5V



2010/12/10 PCHOME 訂購一台 HX5V 11,980(分六期)

Sony Cyber-shot DSC-HX5V (公司貨)
SONY SDHC 16GB記憶卡
PORTER 手提袋

11日上午11點到貨

看起來不錯的,轉盤有點小,不容易轉換模式

張貼在 購物 | 發表留言

SONY DV錯誤代碼

錯誤顯示 原因及處理方式
C:04:xx You are using a battery pack that is not an “InfoLITHIUM" battery pack. Use an “InfoLITHIUM" battery pack.
C:21:xx Moisture condensation has occurred. Eject the cassette and leave your camcorder for at least one hour to acclimatize.
C:22:xx The video heads are dirty. Clean the heads using the Sony V8-25CLD cleaning cassette.
C:31:xx
C:32:xx
A malfunction other than the above that you can service has occurred.

  • Eject the cassette and insert it again, then operate your camcorder.
  • Disconnect the power cord of the AC Adapter or remove the battery pack. After reconnecting the power source, operate your camcorder.
E:20:xx
E:61:xx
E:62:xx
A malfunction that you cannot service has occurred. Contact your Sony dealer or local authorized Sony service facility and inform them of the 5-digital code.

Comments & Discussion >>

詳細錯誤代碼

以下表格詳列詳細的錯誤代碼及其原因.這些資並未列於手冊中,而是由網友提供的(出處: “Error Code C:31:23?" thread).

C:04:00 Non-standard battery is used. Use the info LITHIUM battery.
C:21:00 Condensation. Remove the cassette, and insert it again after one hour.
C:22:00 Video head is dirty. Clean with the optional cleaning cassette.
C:31:10 LOAD direction. Loading does not complete within specified time Load the tape again, and perform operations from the beginning.
C:31:11 UNLOAD direction. Loading does not complete within specified time Load the tape again, and perform operations from the beginning.
C:31:20 T reel side tape slacking when unloading. Load the tape again, and perform operations from the beginning.
C:31:21 Winding S reel fault when counting the rest of tape. Load the tape again, and perform operations from the beginning.
C:31:22 T reel fault. Load the tape again, and perform operations from the beginning.
C:31:23 S reel fault. Load the tape again, and perform operations from the beginning.
C:31:24 T reel fault. Load the tape again, and perform operations from the beginning.
C:31:30 FG fault when starting capstan. Load the tape again, and perform operations from the beginning.
C:31:40 FG fault when starting drum. Load the tape again, and perform operations from the beginning.
C:31:42 FG fault during normal drum operations. Load the tape again, and perform operations from the beginning.
C:32:20 T reel side tape slacking when unloading. Remove the battery or power cable, connect, and perform operations from the beginning.
C:32:21 Winding S reel fault when counting the rest of tape. Remove the battery or power cable, connect, and perform operations from the beginning.
C:32:22 T reel fault. Remove the battery or power cable, connect, and perform operations from the beginning.
C:32:23 S reel fault. Remove the battery or power cable, connect, and perform operations from the beginning.
C:32:24 T reel fault. Remove the battery or power cable, connect, and perform operations from the beginning.
C:32:30 FG fault when starting capstan. Remove the battery or power cable, connect, and perform operations from the beginning.
C:32:40 FG fault when starting drum Remove the battery or power cable, connect, and perform operations from the beginning.
C:32:42 FG fault during normal drum operations Remove the battery or power cable, connect, and perform operations from the beginning.
E:61:00 Difficult to adjust focus Inspect the lens block focus reset sensor
E:61:10 Zoom operations fault Inspect the lens block zoom reset sensor
E:62:00 Steadyshot function does not work well. Inspect pitch angular velocity sensor
E:62:01 Steadyshot function does not work well. Inspect yaw angular velocity sensor
張貼在 未分類 | 發表留言

受保護的文章:WIN7 64bits

該內容受密碼保護。如欲檢視請在下方輸入你的密碼:

張貼在 未分類 | 輸入你的密碼方能觀看迴響。

資源回收筒 不見了!!

參考網址:http://support.microsoft.com/kb/942132/zh-tw

按一下開始 按鈕,然後按一下控制台系統及維護歡迎中心。如果你沒有看到 個人化 Windows 選項,按一下 顯示所有選項

 摺疊此圖像 展開此圖像

讓我看看。按一下 個人化 Windows… OK,我找到了。

 摺疊此圖像 展開此圖像

 
  接著,按一下左側面板的 變更桌面圖示
現在我找到桌面圖示設定對話方塊。所以我猜想我應該勾選資源回收筒,是吧 ?

 摺疊此圖像 展開此圖像

 
  是的。完全正確! 按一下 套用,再按一下 確定。 現在你應該看到資源回收筒出現在你電腦桌面上了。

檢視如何在您電腦桌面上顯示資源回收筒圖示的步驟

太棒了! 我把它找回了!!  
  當你不小心刪除資源回收筒圖示,你應該會收到以下警告訊息。你難道沒有注意到嗎 ?

 摺疊此圖像 展開此圖像

嗯,我可能看過…  
  不管你是刪除資源回收筒,檔案或圖示,警告訊息都會出現的。所以下一次你看到此訊息,你一定要小心一點喔。

步驟回顧

如何在您電腦桌面上顯示資源回收筒圖示

  1. 按一下 開始 按鈕,然後按一下 控制台
     摺疊此圖像 展開此圖像

  2. 在控制台視窗,按一下 系統及維護
     摺疊此圖像 展開此圖像

  3. 按一下 歡迎中心
     摺疊此圖像 展開此圖像

  4. 按兩下個人化 Windows。
     摺疊此圖像 展開此圖像

  5. 按一下左側面板的 變更桌面圖示
     摺疊此圖像 展開此圖像

  6. 當出現 桌面圖示設定 對話方塊,勾選 資源回收筒
     摺疊此圖像展開此圖像

  7. 按一下 套用 以及 確定
    摺疊此圖像展開此圖像

張貼在 未分類 | 發表留言

正妹時計

張貼在 未分類 | 發表留言