页面加载不会触发 [英] Page Load Won't Fire

查看:61
本文介绍了页面加载不会触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我启动了一个在Access数据库上运行的C#程序。最初,它应该是将表中的字段加载到下拉列表框中。那不是
发生的事。当我做了一些诊断时,事实证明程序是

甚至没有进入Page_Load()事件。你知道为什么这可能是这样吗?

I''m started a C# program that runs over an Access database. Initially, it''s
supposed to load a field from a table into a dropdown list box. That wasn''t
happening. When I did some diagnostics, it turned out that the program is
not even getting into the Page_Load() event. Do you have any idea why this
might be the case?

推荐答案

你好Curt

检查你的page_Load事件是否在事件处理程序中注册(InitializeComponent


----- Curt Emich写道:----

我启动了一个在Access数据库上运行的C#程序。最初,它是'b / b
应该从表中加载一个字段到下拉列表框。这不是' '

正在发生。当我做了一些诊断时,结果发现程序我没有进入Page_Load()事件。你有什么想法吗? br />
可能就是这种情况

Hi Curt

Check if your page_Load event is registered in the event handler (InitializeComponent

----- Curt Emich wrote: ----

I''m started a C# program that runs over an Access database. Initially, it''
supposed to load a field from a table into a dropdown list box. That wasn''
happening. When I did some diagnostics, it turned out that the program i
not even getting into the Page_Load() event. Do you have any idea why thi
might be the case




此时,InitializeComponent中唯一的一行是:

this.Load + = new System.EventHandler(this.Page_Load);


有人告诉我有关删除Page_Load及其处理程序的问题和

然后从一些下拉列表中重新选择该事件IDE,它会重新插入它并允许我重新插入代码和VIOLA!这将是b $ b工作。我在其他环境中看到过像这样的怪异东西。问题

是,我无法看到他们从哪里获得一个下拉列表,从任何地方选择

Page_Load事件。你知道吗?


***通过开发者指南发送 http://www.developersdex.com ***

不要只是参加USENET ......获得奖励!

At this point, the only line in InitializeComponent is:
this.Load += new System.EventHandler(this.Page_Load);

Someone else told me about deleting the Page_Load and its handler and
then re-selecting that event from some dropdown in the IDE, which would
re-insert it and allow me to cut my code back in and VIOLA! it would
work. I''ve seen quirkly stuff like this in other environments. Problem
is, I couldn''t see where they were getting a dropdown list to "select"
the Page_Load event from anywhere. Do you know about this?

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


你是在aspx文件中使用代码隐藏或编写page_load事件的脚本吗?


如果编写脚本,你是否碰巧将代码粘贴到一个继承了" Curt Emich& < CE **** @ comcast.net>在消息中写道

新闻:n6 ******************** @ comcast.com ...
are you using code behind or scripting the page_load event in the aspx file?

if scripting, did you happen to paste the code into a page which inherits a
class that has the page_load defined in it''s code?


"Curt Emich" <ce****@comcast.net> wrote in message
news:n6********************@comcast.com...
我'我启动了一个在Access数据库上运行的C#程序。最初,
它应该将表中的字段加载到下拉列表框中。那个
并没有发生。当我做了一些诊断时,事实证明该程序甚至没有进入Page_Load()事件。你知道为什么
可能是这种情况吗?
I''m started a C# program that runs over an Access database. Initially, it''s supposed to load a field from a table into a dropdown list box. That wasn''t happening. When I did some diagnostics, it turned out that the program is
not even getting into the Page_Load() event. Do you have any idea why this might be the case?



这篇关于页面加载不会触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆