PIXNET Logo登入

Frank's Blog

跳到主文

Beneath this mask there is more than flesh. Beneath this mask there is an idea, and ideas are bulletproof.

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 8月 01 週三 201210:39
  • [AJAX] ModalPopupExtender 實作 (彈出版權同意視窗)

 
Script:


<style type="text/css">


.background


{


 background-color:Gray;


 filter:alpha(opacity=60);


 opacity:0.6;


} 


</style>


 


<script type="text/javascript">
 1:  


 2: function download()


 3: {


 4: var iframe = document.createElement("iframe");


 5: iframe.src = "GenerateFile.aspx";


 6: iframe.style.display = "none";


 7: document.body.appendChild(iframe); 


 8: }

</script>


(繼續閱讀...)
文章標籤

Frank 發表在 痞客邦 留言(0) 人氣(2,275)

  • 個人分類:C#
▲top
  • 7月 24 週二 201215:32
  • [C#] RichTextBox 顯示訊息自動捲動,顯示最後一行



private void richTextBox1_TextChanged(object sender, EventArgs e)


{


 richTextBox1.SelectionStart = richTextBox1.TextLength;


 richTextBox1.ScrollToCaret();


}


(繼續閱讀...)
文章標籤

Frank 發表在 痞客邦 留言(0) 人氣(8,013)

  • 個人分類:C#
▲top
  • 5月 18 週五 201218:26
  • [C#] 設定 UseSubmitBehaviot 來防止按鈕重複送出&重複點擊方法


UseSubmitBehaviot 屬性是控制Button於HTML輸出時Type是否為submit或Button屬性
在ASP.NET的Button控制項中預設是會去執行postback,也就是會在submit時會自動去執行__doPostBack 函式
而如果在Button設定UseSubmitBehaviot=false時,Button必須在onClick事件中自行去呼叫__doPostBack 函式
 
(繼續閱讀...)
文章標籤

Frank 發表在 痞客邦 留言(0) 人氣(3,590)

  • 個人分類:C#
▲top
  • 5月 17 週四 201216:35
  • [C#] Seeeion設定- Session特性與在Web.config的常用設定

一.由IIS產生Session並給予一組24字元的SessionID
二.在需要回傳資料給伺服器時由瀏覽器將SessionID附加在HTTP訊息標頭中傳回給IIS做為身份辨識,伺服器處理完資料後依照SessionID回傳給個別的Client端
三.Session在Web.config的常用設定
1.在<System.Web>標籤內
< sessionState
mode="Off|InProc|StateServer|SQLServer"
cookieless="true|false"
timeout="number of minutes"
stateConnectionString="tcpip=server:port"
stateNetworkTimeout="number of seconds" 
sqlConnectionString="sql connection string"
sqlCommandTimeout ="number of seconds"
/>
ex.
(繼續閱讀...)
文章標籤

Frank 發表在 痞客邦 留言(0) 人氣(18,372)

  • 個人分類:C#
▲top
  • 1月 05 週四 201211:22
  • [C#] 取得系統時間

    using System.Runtime.InteropServices; //使用DllImport public partial class Form1 : Form{ [DllImport("kernel32.dll")] static extern void GetSystemTime(out SYSTEMTIME lpSystemTime); private struct SYSTEMTIME { public ushort wYear; public ushort wMonth; public ushort wDayOfWeek; public ushort wDay; public ushort wHour; public ushort wMinute; public ushort wSecond; public ushort wMilliseconds; } private void GetTime() { // Call the native GetSystemTime method // with the defined structure. SYSTEMTIME stime = new SYSTEMTIME(); GetSystemTime(out stime); // Show the current time. MessageBox.Show("Current Time: " + stime.wHour.ToString() + ":" + stime.wMinute.ToString()); }}
(繼續閱讀...)
文章標籤

Frank 發表在 痞客邦 留言(0) 人氣(1,850)

  • 個人分類:C#
▲top
1

About Me

Frank
暱稱:
Frank
分類:
數位生活
好友:
累積中
地區:

anobii

文章分類

toggle 人的生活 (4)
  • SharePoint (6)
  • 思考 (2)
  • 電影 (1)
  • 音樂 (5)
toggle 宅的生活 (15)
  • ORACLE (1)
  • C# (5)
  • cisco (1)
  • 系統測試 (1)
  • Android (21)
  • MAC (1)
  • Hyper-V (2)
  • Windows Server (1)
  • Windows (15)
  • JAVA (4)
  • SQL Server (5)
  • 教學 (16)
  • 硬體 (8)
  • 問題 (16)
  • 軟體 (12)
  • 未分類文章 (1)

最新文章

  • [VM] 網路模式 (Host-only, NAT, Bridge) 差異性
  • [電影] 人間師格 Detachment
  • [Share Point] 啟動SharePoint 2010 Session 機制
  • [Share Point] WebPart 開發
  • [Share Point] SmartPart 安裝及佈署
  • [Share Point] 隱藏SharePoint2010 Dialoag視窗中的Ribbon
  • [Share Point] 自訂義導覽MENU
  • [AJAX] ModalPopupExtender 實作 (彈出版權同意視窗)
  • [C#] Fileupload 加入副檔名過濾
  • [Android] Line 免費表情符號下載

文章搜尋

參觀人氣

  • 本日人氣:
  • 累積人氣: