The code behind class gets compiled into the main dll for the assembly, and it along with all the other dlls in the applications bin directory get shadow copied to the Temporary ASP.NET files.
那些code behind的类被编译到程序集的主dll中,他和其他的dll一起放在应用程序的bin目录下,拷贝映射到asp.net临时目录。
The idea behind class wrapping is that a target class can be wrapped in a layer of instrumenting code that retains the same external behavior as the class that's wrapped.
类包装背后的理念是:目标类可以包装在一层插装代码中,后者具有与被包装的类相同的外部行为。
Which will then prompt us for the event handler in our code-behind class to use?
然后就会提示我们在我们的后台代码类中该使用的事件处理函数。
VS will then automatically create a stub event handler implementation in our code-behind class file. We can use this event handler to update the Button's content with a new message when it is clicked.
然后VS就会自动地在我们的后台代码类文件中创建一个占位的事件处理函数实现。
This partial class enables your code-behind file to be used as part of a complete class without requiring you to declare the controls explicitly.
使用此分部类,您可以将代码隐藏文件用作完整类的一部分,而无需显式声明控件。
Note that under the default behavior of the markup compile build actions, you can leave the derivation blank in the partial class definition on the code-behind side.
请注意,在标记编译生成操作的默认行为下,您可以在代码隐藏端的分部类定义中将派生保留为空。
Note that under the default behavior of the markup compile build actions, you can leave the derivation blank in the partial class definition on the code-behind side.
请注意,在标记编译生成操作的默认行为下,您可以在代码隐藏端的分部类定义中将派生保留为空。
应用推荐