These files are split into markup and source code , which includes both code - behind files and any code that is enclosed in 这些文件被拆分为标记和源代码,其中包括代码隐藏文件和包含在
It references code in pre - compiled assemblies , a code - behind file , or code contained in the . asmx file itself 它引用预编译的程序集中的代码、代码隐藏文件或包含于. asmx文件本身的代码。
The use of partial classes removes the need for control declarations and event wire - up code in your code - behind files 分部类的使用消除了代码隐藏文件中对控件声明和事件连接代码的需要。
By default , visual web developer uses the page name as the basis for the class name in the code - behind file 默认情况下, visual web developer使用页名称作为代码隐藏文件中的类名称的基础。
For example , j does not support partial classes , and therefore does not support creating code - behind files for asp . net pages 例如, j #不支持分部类,因此也不支持为asp . net页创建代码隐藏文件。
To enter the code editor and view the code - behind file of a mobile web forms page , select code from the visual studio 若要进入代码编辑器并查看移动web窗体页的代码隐藏文件,请从visual studio的
App code subdirectory , or in the case of a code - behind file for an asp . net page , in the same directory as the web page App _ code子目录;但如果是asp . net页的代码隐藏文件,则与网页位于同一目录。
Device filters that use methods in code - behind files are not declared in the application s web . config configuration file 应用程序的web . config配置文件中不会声明使用代码隐藏文件中方法的设备筛选器。
The code editor panel displays the contents of the code - behind file containing the programming logic for a mobile web forms page 代码编辑器面板显示代码隐藏文件的内容,该文件包含移动web窗体页的编程逻辑。
The following example uses the single - file code model and might not work correctly if copied directly into a code - behind file 以下代码示例使用单文件代码模型,当它直接复制到代码隐藏文件时可能不能正常工作。