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

正文內(nèi)容

外文翻譯---aspnet介紹以及內(nèi)聯(lián)代碼和共享-jsp程序(更新版)

2025-07-16 11:16上一頁面

下一頁面
  

【正文】 維護您的代碼和表示邏輯,則該方法十分有用 。通過在 Inherits 屬性中指定類名,頁代碼使用 % Page % 指令的 CodeFile 屬性來引用代碼隱藏文件。 與頁可在運行時動態(tài)編譯一樣,任意代碼文件(例如, .cs 或 .vb 文件)也可以在運行時動態(tài)編譯。 configuration pilation codeSubDirectories add directoryName=Subdirectory/ /codeSubDirectories /pilation / /configuration 在 版本 中支持 Bin 目錄 , 該目錄類似于 Code 目錄 , 不同的是它可以包含預編譯的程序集。通過在應用程序的 文件中注冊,并且可以注冊更多的程序集。主要在你的程序中將該 DLL作為引用添加到你的工程。與 不同( 需要將這些文件預編譯到 Bin 目錄), App_Code 目錄中的所有代碼文件都將在運行時動態(tài)編譯,然后提供給應用程序。 與以前版本相比,這種簡化的代碼隱藏模型的好處在于無需維護代碼隱藏類中服務器控件變量的各個不同的聲明。在使用代碼隱藏時,處理事件的代碼所在的文件與包含服務器控件和標記的頁在物理上分開。 提供了可以組織頁中代碼的兩種方法。此控件狀態(tài)不存儲在服務器上(而是存儲在往返于請求之間的 input type=hidden 窗體字段中)。服務器控件(和頁本身)還公開了一些事件,開發(fā)人員可以處理這些事件以在頁執(zhí)行期間執(zhí)行特定的操作或響應將頁發(fā)回服務器的客戶端操作( “回發(fā) ”)。例如,下面的示例演示如何使用 % % 代碼塊解釋從客戶端發(fā)回的請求。這是因為 .aspx 文件只包含靜態(tài) HTML(不包含動態(tài)內(nèi)容)。 頁是采用 .aspx 文件擴展名的文 本文件。附錄 1 英文原文 Introduction to Pages and Inline Code and Share[10] The Web Forms page framework is a scalable mon language runtime programming model that can be used on the server to dynamically generate Web pages. Intended as a logical evolution of ASP ( provides syntax patibility with existing pages), the page framework has been specifically designed to address a number of key deficiencies in the previous model. In particular, it provides the ability to create and use reusable UI controls that can encapsulate mon functionality and thus reduce the amount of code that a page developer has to write, the ability for developers to cleanly structure their page logic in an orderly fashion (not spaghetti code), and the ability for development tools to provide strong WYSIWYG design support for pages (existing classic ASP code is opaque to tools). This section of the QuickStart provides a highlevel code walkthrough of some basic page features. Subsequent sections of the QuickStart drill down into more specific details. pages are text files with an .htm file name extension. Pages consist of code and markup and are dynamically piled and executed on the server to produce a rendering to the requesting client browser (or device). They can be deployed throughout an IIS virtual root directory tree. When a browser client requests .htm resources, the runtime parses and piles the target file into a .NET Framework class. This class can then be used to dynamically process ining requests. (Note that the .htm file is piled only the first time it is accessed。本部分的快速入門提供對某些基本 頁功能的高級代碼演練,后面部分的快速入門將深入介紹更具體的細節(jié)。 重要事項:注意在單擊 “Lookup”(查找)按鈕時,不會發(fā)生任何操作。 頁開發(fā)人員可利用 % % 代碼塊動態(tài)修改 HTML 輸出,就好像目前可使用 ASP 進行修改一樣。服務器控件公開可以聲明方式(通過標記)或編程方式(通過代碼 )設置的屬性。 重要事項:注意,在到服務器的往 返過程之間,這些服務器控件自動保留客戶端輸入的任何值。 下面的示例演示 頁開發(fā)人員可如何處理 asp:button runat=server 控件中的 OnClick 事件以操作 asp:label runat=server 控件的 Text 屬性。但 還支持另一種分解代碼和表示內(nèi)容的方法,該方法稱為 “代碼隱藏 ”模型。請注意,代碼隱藏類的成員必須是公共或受保護的成員(不能為私有成員)。 引入了 App_Code 目錄,該目錄可以包含一些獨立文件,這些文件包含要在應用程序中的多個頁之間共享的代碼。如果需要使用其他人編寫的代碼,則此目錄就很有用了,您不用訪問源代碼( VB 或 C 文件)就可以得到編譯后的 DLL。 configuration pilation assemblies add assembly=, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089/ /assemblies /pilation /configuration
點擊復制文檔內(nèi)容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1