freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

外文翻譯---aspnet介紹以及內(nèi)聯(lián)代碼和共享-jsp程序-預(yù)覽頁

2025-06-21 11:16 上一頁面

下一頁面
 

【正文】 site (using the inline or codebehind separation models described in the previous section), there are times when you will want to share code across several pages in your site. It would be inefficient and difficult to maintain this code by copying it to every page that needs it. Fortunately, provides several convenient ways to make code accessible to all pages in an application. Just as pages can be piled dynamically at runtime, so can arbitrary code files (for example .cs or .vb files). introduces the App_Code directory, which can contain standalone files that contain code to be shared across several pages in your application. Unlike , which required these files to be prepiled to the Bin directory, any code files in the App_Code directory will be dynamically piled at runtime and made available to the application. It is possible to place files of more than one language under the App_Code directory, provided they are partitioned in subdirectories (registered with a particular language in ). The example below demonstrates using the App_Code directory to contain a single class file called from the page. By default, the App_Code directory can only contain files of the same language. However, you may partition the App_Code directory into subdirectories (each containing files of the same language) in order to contain multiple languages under the App_Code directory. To do this, you need to register each subdirectory in the file for the application. configuration pilation codeSubDirectories add directoryName=Subdirectory/ /codeSubDirectories /pilation / /configuration Supported in version 1, the Bin directory is like the Code directory, except it can contain prepiled assemblies. This is useful when you need to use code that is possibly written by someone other than yourself, where you don39。本部分的快速入門提供對某些基本 頁功能的高級代碼演練,后面部分的快速入門將深入介紹更具體的細(xì)節(jié)。當(dāng)瀏覽器客戶端請求 .aspx 資源時, 運行庫會對目標(biāo)文件進(jìn)行分析并將其編譯為 .NET Framework 類。 重要事項:注意在單擊 “Lookup”(查找)按鈕時,不會發(fā)生任何操作。這包括對 % % 代碼呈現(xiàn)塊的支持,這些塊可以與 .aspx 文件中的 HTML 內(nèi)容混用。 頁開發(fā)人員可利用 % % 代碼塊動態(tài)修改 HTML 輸出,就好像目前可使用 ASP 進(jìn)行修改一樣。 除了代碼和標(biāo)記之外, 頁還可以包含服務(wù)器控件,這些控件是可編程的服務(wù)器端對象,通常表示頁中的用戶界面元素,如文本框或圖像等。服務(wù)器控件公開可以聲明方式(通過標(biāo)記)或編程方式(通過代碼 )設(shè)置的屬性。內(nèi)部 HTML 標(biāo)記由 命名空間中的某個控件處理。 重要事項:注意,在到服務(wù)器的往 返過程之間,這些服務(wù)器控件自動保留客戶端輸入的任何值。例如,下面的示例演示如何使用 asp:adrotator 控件在頁上動態(tài)顯示循環(huán)廣告。 下面的示例演示 頁開發(fā)人員可如何處理 asp:button runat=server 控件中的 OnClick 事件以操作 asp:label runat=server 控件的 Text 屬性。但是,當(dāng)客戶端在 TextBox 中鍵入了一個值并單擊了 Button 后,該頁會回發(fā)到服務(wù)器,然后該頁使用頁中的代碼處理此單擊事件,動態(tài)地更新 Label 控件的 Text 屬性。但 還支持另一種分解代碼和表示內(nèi)容的方法,該方法稱為 “代碼隱藏 ”模型。代碼隱藏模型非常適用于此類環(huán)境。請注意,代碼隱藏類的成員必須是公共或受保護(hù)的成員(不能為私有成員)。 盡管可以將代碼 放在站點的每個頁上(使用上一節(jié)中所述的內(nèi)聯(lián)或代碼隱藏分離模型),但有時您將希望在站點中的多個頁之間共享代碼。 引入了 App_Code 目錄,該目錄可以包含一些獨立文件,這些文件包含要在應(yīng)用程序中的多個頁之間共享的代碼。 默認(rèn)情況下, App_Code 目錄只能包含同一種語言的文件。如果需要使用其他人編寫的代碼,則此目錄就很有用了,您不用訪問源代碼( VB 或 C 文件)就可以得到編譯后的 DLL。 Import Namespace=MyCustomNamespace .NET Framework 提供了表示 Framework 的各個部件的大量類庫程序集。 configuration pilation assemblies add assembly=, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089/ /assemblies /pilation /configuration
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1