【问题标题】:Where is the event handlers wired up when using AutoEventWireup?使用 AutoEventWireup 时事件处理程序连接在哪里?
【发布时间】:2009-08-17 18:32:33
【问题描述】:

我正在尝试查找 Web 应用程序中的错误,该错误似乎与正在使用的 AutoEventWireup 有关。使用 AutoEventWireup 时事件何时以及如何连接?

我知道它发生在运行时,但究竟在哪个框架类/方法中? (I am hoping that I will be able to step through the framework code)。

【问题讨论】:

    标签: asp.net webforms autoeventwireup


    【解决方案1】:

    在运行时,您的 .aspx 页面会被解析,并将结果转换为一个类。接线是在这个生成的类中完成的。

    【讨论】:

    • John,我是这么想的,但是查看 Reflector 中生成的类会发现情况并非如此。
    • 这是一个网站项目,还是一个网络应用项目?
    猜你喜欢
    • 2013-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多