To create an event - handling method for this button and to display the code - behind file Webform1 . aspx上雙擊“轉換”按鈕,為該按鈕創(chuàng)建事件處理方法并顯示代碼隱藏文件。
Method from proceeding while the event - handling method is still executing , use a more robust synchronization mechanism such as the 方法的線程,則請使用更可靠的同步機制,如
This allows you to provide an event - handling method that performs a custom routine whenever this event occurs 這使您可以提供一個這樣的事件處理方法,即每次發(fā)生此事件時執(zhí)行一個自定義例程。
The code editor opens the code - behind page and inserts the appropriate event - handling method into the code - behind class 代碼編輯器會打開代碼隱藏頁,并將適當?shù)氖录幚矸椒ú迦朐摯a隱藏類。
The following example shows an event - handling method that gets the button click and displays the information passed from the button in its 下面的示例演示一個事件處理方法,該方法獲取按鈕單擊并顯示從該按鈕的
Event has run , but before control event - handling methods are called , the remaining view state information is loaded into the dynamically created controls 事件運行之后、控件事件處理方法調用之前加載到動態(tài)創(chuàng)建的控件中。
If a page already contains an event - handling method with the appropriate signature , you can bind a control event to it at run time 如果頁中已包含具有適當簽名的事件處理方法,則可以在運行時將控件事件綁定到該事件處理方法。
Events in the workbook , for example typing in cells or clicking buttons and menu items , can call event - handling methods in the assembly 工作簿中的事件(例如在單元格中鍵入或單擊按鈕和菜單項)可以調用程序集中的事件處理方法。
Events in the document , for example entering specific areas or clicking buttons and menu items , can call event - handling methods in the assembly 文檔中的事件(例如進入特定區(qū)域或單擊按鈕和菜單項)可以調用程序集中的事件處理方法。
The code editor automatically inserts the appropriate event - handling method into the code - behind page and positions the insertion point within the method 代碼編輯器會自動將適當?shù)氖录幚矸椒ú迦氪a隱藏頁,并將插入點放在該方法內(nèi)。