努力學習

為了將來~


發表留言

ajax loading 小圖示產生網站

這個網站可以依需求產生各式各樣ajax loading圖示,工作時會用的到。

http://www.ajaxload.info/

Create easily your own ajax loader icon :
Select the type of indicator you want Enter the background code color you want
(tick “Transparent background" if you don’t want one Enter the foreground code color you want Press “Generate it"


1 則迴響

如何將檔案存入資料庫的欄位

這個範例示範了如何將檔案存入資料庫中的 Image 欄位及如何由 Image 欄位取出該檔案。
假設資料表 Tb_File 有 ID,ExcelFile 兩個欄位,ID 欄位型態為Integer,ExcelFile 欄位型態為 Image,先加入一筆記錄,ID=1,ExcelFile=Null,範例中將Excel檔案利用Update寫入ID=1的記錄中及由此記錄讀取Image欄位內容並儲存成檔案。
繼續閱讀


發表留言

為 GridView 的資料列加入移動光棒的效果。

Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
        ‘只針對資料列做處理
        If e.Row.RowType = DataControlRowType.DataRow Then
            ‘滑鼠移至資料列上的顏色
            e.Row.Attributes.Add(“onmouseover", “this.style.backgroundColor=’blue'")
            ‘滑鼠離開資料列上的顏色
            e.Row.Attributes.Add(“onmouseout", “this.style.backgroundColor=’white'")
        End If
End Sub