其中一种是在代 码里调用定义在后台代码类(code-behind class)里的办法,并使用格式化的形 式。这个办法我们在指南《在gridview控件中使用templatefield》里论述过。
基于1个网页-相关网页
然后就会提示我们在我们的后台代码类中该使用的事件处理函数。
Which will then prompt us for the event handler in our code-behind class to use?
然后VS就会自动地在我们的后台代码类文件中创建一个占位的事件处理函数实现。
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.
借助于自动生成文档的类库的后台工作,只需要在每个.as文件中添加几行简单的代码就能实例化整个框架。
The entire framework is instantiated in just a few lines of code per .as file thanks to the document classes doing all of the connection work in the background.
应用推荐