2008年2月28日 星期四

2008年2月19日 星期二

要修改系統資料表,無法修改的處理方法

-- 修改前 先設定允許修改更新
sp_configure 'allow updates','1'
go
reconfigure with override
go

----- 開始修改系統資料表---
go

-- 修改完後再設定不允許修改更新
sp_configure 'allow updates','0'
go
reconfigure with override
go

2008年2月18日 星期一

1.Keep your family close, put your enemies closer.

2.You know how you survive? You make people need you.
You survive, because you make them need what you have, then they will have no where to go.

2008年1月27日 星期日

動態建立DataGrid Column

Function CreateBoundColumn(ByVal DataFieldValue As String, ByVal HeaderTextValue As String) As BoundColumn
' This version of CreateBoundColumn method sets only the ' DataField and HeaderText properties.
' Create a BoundColumn. Dim column As BoundColumn = New BoundColumn()
' Set the properties of the BoundColumn. column.DataField = DataFieldValue column.HeaderText = HeaderTextValue
Return column
End Function


Function CreateBoundColumn(ByVal DataFieldValue As String, _ ByVal HeaderTextValue As String, ByVal FormatValue As String, _ ByVal AlignValue As HorizontalAlign) As BoundColumn
' This version of CreateBoundColumn method sets the DataField, ' HeaderText, and DataFormatString properties. It also sets the ' HorizontalAlign property of the ItemStyle property of the column.
' Create a BoundColumn using the overloaded CreateBoundColumn method. Dim column As BoundColumn = CreateBoundColumn(DataFieldValue, HeaderTextValue)
' Set the properties of the BoundColumn. column.DataFormatString = FormatValue column.ItemStyle.HorizontalAlign = AlignValue
Return column
End Function



Function CreateLinkColumn(ByVal NavUrlValue As String, ByVal TargetValue As String, _ ByVal TextValue As String, ByVal HeaderTextValue As String) As HyperLinkColumn
' Create a BoundColumn. Dim column As HyperLinkColumn = New HyperLinkColumn()
' Set the properties of the ButtonColumn. column.NavigateUrl = NavUrlValue column.Target = TargetValue column.Text = TextValue column.HeaderText = HeaderTextValue
Return column
End Function

2008年1月24日 星期四

最輕鬆的工作

錢多事少離家近、睡覺睡到自然醒、位高權重責任輕;
老闆說話不用聽、五年就領退休金、領錢領到手抽筋;
旅遊出國休假勤、股票分紅拼命領、出差作事別人請;
金融風暴不擔心、月月出國去散心、雙B跑車任我行;
金卡銀卡刷不停、吃喝玩樂錢照領、全家出遊有獎金;
回來聊天談事情、經理來了不用停、只說謝謝你關心;
下班走人你最行、上班在家吃點心、遲到說是出外勤;

2007年12月22日 星期六

抒發心情

今天下午,很偶然的遇到高中初戀,看到她比以前成熟多了,也變漂亮了。我沒有主動打招呼,我不知她到底有沒有看到我,不過我想應該是有。感覺上她過的應該不錯,手上有帶戒子,應該是結婚了吧!
現在回想起來,也許當初離開她,或許對他是好的吧!想想現在自己的狀況,可能沒有辦法給他幸福吧!
現在會後悔離開她嗎?答案是肯定的!
不管如何,都希望他幸福美滿。