<bdo id='o0W1h'></bdo><ul id='o0W1h'></ul>

        <i id='o0W1h'><tr id='o0W1h'><dt id='o0W1h'><q id='o0W1h'><span id='o0W1h'><b id='o0W1h'><form id='o0W1h'><ins id='o0W1h'></ins><ul id='o0W1h'></ul><sub id='o0W1h'></sub></form><legend id='o0W1h'></legend><bdo id='o0W1h'><pre id='o0W1h'><center id='o0W1h'></center></pre></bdo></b><th id='o0W1h'></th></span></q></dt></tr></i><div id='o0W1h'><tfoot id='o0W1h'></tfoot><dl id='o0W1h'><fieldset id='o0W1h'></fieldset></dl></div>
        <legend id='o0W1h'><style id='o0W1h'><dir id='o0W1h'><q id='o0W1h'></q></dir></style></legend><tfoot id='o0W1h'></tfoot>
      1. <small id='o0W1h'></small><noframes id='o0W1h'>

      2. 如何在 Visual Studio 2008 中为 ASP.NET 添加页面事件

        How do I add Page Events for ASP.NET in Visual Studio 2008(如何在 Visual Studio 2008 中为 ASP.NET 添加页面事件)

      3. <i id='B0rx1'><tr id='B0rx1'><dt id='B0rx1'><q id='B0rx1'><span id='B0rx1'><b id='B0rx1'><form id='B0rx1'><ins id='B0rx1'></ins><ul id='B0rx1'></ul><sub id='B0rx1'></sub></form><legend id='B0rx1'></legend><bdo id='B0rx1'><pre id='B0rx1'><center id='B0rx1'></center></pre></bdo></b><th id='B0rx1'></th></span></q></dt></tr></i><div id='B0rx1'><tfoot id='B0rx1'></tfoot><dl id='B0rx1'><fieldset id='B0rx1'></fieldset></dl></div>

        1. <legend id='B0rx1'><style id='B0rx1'><dir id='B0rx1'><q id='B0rx1'></q></dir></style></legend>

                  <tbody id='B0rx1'></tbody>

                <small id='B0rx1'></small><noframes id='B0rx1'>

                • <bdo id='B0rx1'></bdo><ul id='B0rx1'></ul>
                  <tfoot id='B0rx1'></tfoot>
                  本文介绍了如何在 Visual Studio 2008 中为 ASP.NET 添加页面事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这是一个 Visual Studio 问题.我觉得所有有用的 Intellisense 应该有一些帮助,但我似乎找不到它.

                  This is a bit of a Visual Studio question. I feel with all the helpful Intellisense there should be something to assist but I can't seem to find it.

                  我在 VS2008 的 ASP.NET C# 中创建了一个带有代码隐藏的页面,它当然会自动生成一个 PageLoad 事件方法.那么,如果我想为 PageLoad 之外的更多事件添加方法怎么办?我认为 Foo.aspx 页面上会有一些可能的方法事件处理程序列表要添加.难道没有更多可能像PageInit,PageDispose,(或等效)等......?我在哪里可以找到这些?

                  I made a page with a codebehind in ASP.NET C# in VS2008 and it autogenerates a PageLoad event method, of course. Well, what if I want to add methods for more events besides PageLoad? I would think there would be some list on the Foo.aspx page of possible method event handlers to add. Aren't there more maybe like PageInit, PageDispose, (or equiv) etc...? Where can I find these?

                  编辑 - 我当然可以在 api 中查找方法名称.我正在寻找一个方便的快捷方式来在 Visual Studio 中添加这些.如果它产生一个,它不能产生其他的吗?

                  EDIT - I can of course look up the method names in the api. I'm looking for a handy shortcut to add these in Visual Studio. If it generates one, can't it make others?

                  推荐答案

                  • 在解决方案资源管理器中,右键单击页面并从上下文菜单中选择查看组件设计器"
                  • 打开属性面板/窗口(按 F4)
                  • 现在点击黄色箭头/flash 图标,您将看到所有页面事件的列表
                  • 双击要为其添加处理程序的事件
                  • 我很确定还有另一种方法(从设计器视图开始),但我无法重现它.

                    I'm pretty sure there was another way (starting from the designer view), but I can't reproduce it.

                    我通常不使用页面事件处理程序,而是覆盖相应的方法(例如 OnLoad 而不是 Page_Load).要实现这些覆盖之一,您只需在代码隐藏中键入覆盖",然后按 space 即可获取可以覆盖的方法列表.

                    I usually do not use the page event handlers, instead I override the corresponding methods (e.g. OnLoad instead of Page_Load). To implement one of these overrides, you can simply type "override" in the code-behind and press space to get a list of methods that you can override.

                    这篇关于如何在 Visual Studio 2008 中为 ASP.NET 添加页面事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                    本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Using entity Framework with .NET Core and DB2(将实体框架与 .NET Core 和 DB2 结合使用)
                  SQL1159 Initialization error with DB2 .NET Data Provider, reason code 10, tokens 0.0.0, 9.7.3(SQL1159 DB2 .NET 数据提供程序的初始化错误,原因代码 10,令牌 0.0.0、9.7.3)
                  Geolocation error with IP address 127.0.0.1(IP 地址为 127.0.0.1 的地理定位错误)
                  Geolocation web service recommendations(地理位置 Web 服务建议)
                  Finding clients location in an ASP.NET page(在 ASP.NET 页面中查找客户端位置)
                  Fetch Latitude Longitude by passing postcodes to maps.google.com using Javascript(通过使用 Javascript 将邮政编码传递给 maps.google.com 来获取纬度经度)
                  • <tfoot id='5Qpq7'></tfoot>

                    <i id='5Qpq7'><tr id='5Qpq7'><dt id='5Qpq7'><q id='5Qpq7'><span id='5Qpq7'><b id='5Qpq7'><form id='5Qpq7'><ins id='5Qpq7'></ins><ul id='5Qpq7'></ul><sub id='5Qpq7'></sub></form><legend id='5Qpq7'></legend><bdo id='5Qpq7'><pre id='5Qpq7'><center id='5Qpq7'></center></pre></bdo></b><th id='5Qpq7'></th></span></q></dt></tr></i><div id='5Qpq7'><tfoot id='5Qpq7'></tfoot><dl id='5Qpq7'><fieldset id='5Qpq7'></fieldset></dl></div>
                      <tbody id='5Qpq7'></tbody>
                      <bdo id='5Qpq7'></bdo><ul id='5Qpq7'></ul>

                        <legend id='5Qpq7'><style id='5Qpq7'><dir id='5Qpq7'><q id='5Qpq7'></q></dir></style></legend>
                      1. <small id='5Qpq7'></small><noframes id='5Qpq7'>