In the older code-behind model, it was not practical to add controls in the markup without having access to the code-behind to add the instance variable at the same time.
英
美
- 在旧的代码隐藏模型中,如果要在标记中添加控件,必须同时访问代码隐藏页以添加实例变量。