我的按钮死了,我完全失去了 [英] my button died and I'm totally lost

查看:74
本文介绍了我的按钮死了,我完全失去了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi-


我运行了这个漂亮的小向导应用程序。它由

组成。几个Panel控件最初设置它们的可见性除了

第一个,然后当你进入页面时,代码隐藏方法会

管理正确的面板的可见性,给出了单独的

步骤的错觉。很好,很棒。


所有面板都有下一步的服务器按钮控件。和上一个

最后一个面板有一个按钮控件(当然是服务器),它可以调用

不同的Click事件,而不是前面板中的其他按钮。 br />

我做了些什么,我不知道什么,但当我点击按钮完成......

事件永远不会开火,挖掘更深刻的我意识到Page_Load()甚至不会被解雇。所以......它的作用是让窗户闪烁,然后一切都变好了。

白色。页面永远不会发布。


这是按钮的呈现HTML:

< input type =" submit"名称= QUOT; Button_Finish"值= QUOT; FINISH" onclick =" if

(typeof(Page_ClientValidate)==''function'')Page_ClientValidate();

language =" javascript" ID = QUOT; Button_Finish" />


我认为它与面板内的按钮有关。


实际上,我刚刚发现它为什么'不工作....渲染的HTML中没有

Page_ClientValidate()函数。我猜它在第一个面板中创建它

,其中包含一个导致验证的按钮,然后在我隐藏该面板时没有渲染脚本的
。这是

课程的推测,但如果是这样的话......我会认为这会是一个错误,

不是你。


想法?建议??


一切都会很酷,


谢谢,

史蒂夫

解决方案

好的,所以我关闭了验证。它仍然不会发布。我在Page_Load中设置了一个断点

并且它没有触发


这里是按钮的呈现HTML

< input type =" submit"名称= QUOT; Button_Finish"值= QUOT; FINISH" id =" Button_Finish"

/>

对我来说很好看?.....


" Steve" ; < ST *** @ nowhere.com>在消息中写道

news:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

Hi-

我运行了这个漂亮的小向导应用程序。它由几个Panel控件组成,最初设置了它们的可见性,除了第一个
之外,然后当你进入页面时,代码隐藏方法
将管理正确的面板'的可见性,给出了单独的步骤的错觉。很好,很棒。

所有面板都有服务器按钮控件,用于下一步按钮。和上一个
最后一个面板有一个按钮控件(当然是服务器),它可以调用与前面板中其他按钮不同的Click事件。

我做了一些事情,我不知道是什么,但是当我点击按钮
完成......事件永远不会触发,深入挖掘我意识到Page_Load()不是
甚至射击。所以...它的作用是让窗户闪烁,然后一切都变白了。页面永远不会发布。

以下是按钮的呈现HTML:
< input type =" submit"名称= QUOT; Button_Finish"值= QUOT; FINISH" onclick =" if
(typeof(Page_ClientValidate)==''function'')Page_ClientValidate();
language =" javascript" ID = QUOT; Button_Finish" />

我认为它与按钮在面板内部有关。

实际上,我刚刚发现它为什么不起作用...... 。渲染的HTML中没有 Page_ClientValidate()函数。我想它会在第一个面板中创建
,它包含一个导致验证的按钮,然后在我隐藏该面板时,没有渲染脚本。这当然是猜测
,但如果是这样的话......我会认为这将是一个
的bug,不是吗。

想法?建议??

任何事都会很酷,

谢谢,
史蒂夫


检查您的On_Load事件,它是由IDE生成的。有时东西会从那里删除

。你可能需要手动添加代表


" Steve" < ST *** @ nowhere.com>在消息中写道

news:uN ************** @ TK2MSFTNGP09.phx.gbl ...

好的,所以我转过身来关闭验证。它仍然不会发布。我在Page_Load中放了
断点并且它没有触发

这里是按钮的呈现HTML
< input type =" submit"名称= QUOT; Button_Finish"值= QUOT; FINISH"
id =" Button_Finish" />

对我来说很好看?.....

史蒂夫 < ST *** @ nowhere.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

Hi-

我运行了这个漂亮的小向导应用程序。它由几个Panel控件组成,除了

第一个之外,最初设置它们的可见性,然后当你在页面中进行时,代码隐藏方法

<将

管理正确的面板的可见性,给出单独的步骤的错觉。很好,很棒。

所有面板都有服务器按钮控件,用于下一步按钮。和上一个
最后一个面板有一个按钮控件(当然是服务器),它可以调用与前面板中其他按钮不同的Click事件。

我做了什么,我不知道什么,但是当我点击按钮


完成....

事件永远不会发生,深入挖掘我意识到Page_Load()不是


甚至

开火。所以...它的作用是让窗户闪烁,然后一切都变白了。页面永远不会发布。

以下是按钮的呈现HTML:
< input type =" submit"名称= QUOT; Button_Finish"值= QUOT; FINISH" onclick =" if
(typeof(Page_ClientValidate)==''function'')Page_ClientValidate();
language =" javascript" ID = QUOT; Button_Finish" />

我认为它与按钮在面板内部有关。

实际上,我刚刚发现它为什么不起作用...... 。渲染的HTML中没有 Page_ClientValidate()函数。我想它会在第一个面板中创建


,该面板中包含一个导致验证的按钮,然后当我隐藏该面板时,
后面没有渲染的脚本。这是



推测

当然,但如果是这种情况......我会认为这将是一个


bug,

你不是吗。

想法?建议??

任何事都会很酷,

谢谢,
史蒂夫



检查InitilizeComponent()函数。最有可能的是Page_Load事件

布线已经被设计师删除了。

发生在我身上几次。

史蒂夫 < ST *** @ nowhere.com>在消息中写道

news:uN ************** @ TK2MSFTNGP09.phx.gbl ...

好的,所以我转过身来关闭验证。它仍然不会发布。我在Page_Load中放了
断点并且它没有触发

这里是按钮的呈现HTML
< input type =" submit"名称= QUOT; Button_Finish"值= QUOT; FINISH"
id =" Button_Finish" />

对我来说很好看?.....

史蒂夫 < ST *** @ nowhere.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

Hi-

我运行了这个漂亮的小向导应用程序。它由几个Panel控件组成,除了

第一个之外,最初设置它们的可见性,然后当你在页面中进行时,代码隐藏方法

<将

管理正确的面板的可见性,给出单独的步骤的错觉。很好,很棒。

所有面板都有服务器按钮控件,用于下一步按钮。和上一个
最后一个面板有一个按钮控件(当然是服务器),它可以调用与前面板中其他按钮不同的Click事件。

我做了什么,我不知道什么,但是当我点击按钮


完成....

事件永远不会发生,深入挖掘我意识到Page_Load()不是


甚至

开火。所以...它的作用是让窗户闪烁,然后一切都变白了。页面永远不会发布。

以下是按钮的呈现HTML:
< input type =" submit"名称= QUOT; Button_Finish"值= QUOT; FINISH" onclick =" if
(typeof(Page_ClientValidate)==''function'')Page_ClientValidate();
language =" javascript" ID = QUOT; Button_Finish" />

我认为它与按钮在面板内部有关。

实际上,我刚刚发现它为什么不起作用...... 。渲染的HTML中没有 Page_ClientValidate()函数。我想它会在第一个面板中创建


,该面板中包含一个导致验证的按钮,然后当我隐藏该面板时,
后面没有渲染的脚本。这是



推测

当然,但如果是这种情况......我会认为这将是一个


bug,

你不是吗。

想法?建议??

任何事都会很酷,

谢谢,
史蒂夫



Hi-

I had this nice little wizard application running. It was comprised of
several Panel controls initially set w/ their visibility off except for the
first one, then as you progress through the page, a code-behind method would
manage the correct panel''s visibility, giving the illusion of separate
steps. Fine, great.

All the panels has server button controls for "Next" and "Previous"
The last panel has a button control (server of course) that would call a
different Click event than the other buttons in the previous panels.

I did something, I don''t know what but when I click the button "Finish"....
the event never fires, digging deeper I realized that Page_Load() isn''t even
firing. So... what it does is make the window flash, then it all goes
white. The page never posts.

Here is the rendered HTML for the button:
<input type="submit" name="Button_Finish" value="FINISH" onclick="if
(typeof(Page_ClientValidate) == ''function'') Page_ClientValidate(); "
language="javascript" id="Button_Finish" />

I think it has something to do with the button being inside a panel.

Actually, I just found out why it''s not working.... there is no
Page_ClientValidate() function in the rendered HTML. I guess it creates it
in the first panel that holds a button that Causes Validation, then later
when I hide that panel, there is no script rendered. This is speculation of
course, but if this is the case.... I would think that this would be a bug,
wouldn''t you.

Thoughts? Suggestions??

Anything would be cool,

Thanks,
Steve

解决方案

OK, so I turned off validation. It still won''t post. I''ve put a breakpoint
right in Page_Load and it doesn''t fire

here is the rendered HTML for the button
<input type="submit" name="Button_Finish" value="FINISH" id="Button_Finish"
/>
looks fine to me?.....

"Steve" <st***@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Hi-

I had this nice little wizard application running. It was comprised of
several Panel controls initially set w/ their visibility off except for the first one, then as you progress through the page, a code-behind method would manage the correct panel''s visibility, giving the illusion of separate
steps. Fine, great.

All the panels has server button controls for "Next" and "Previous"
The last panel has a button control (server of course) that would call a
different Click event than the other buttons in the previous panels.

I did something, I don''t know what but when I click the button "Finish".... the event never fires, digging deeper I realized that Page_Load() isn''t even firing. So... what it does is make the window flash, then it all goes
white. The page never posts.

Here is the rendered HTML for the button:
<input type="submit" name="Button_Finish" value="FINISH" onclick="if
(typeof(Page_ClientValidate) == ''function'') Page_ClientValidate(); "
language="javascript" id="Button_Finish" />

I think it has something to do with the button being inside a panel.

Actually, I just found out why it''s not working.... there is no
Page_ClientValidate() function in the rendered HTML. I guess it creates it in the first panel that holds a button that Causes Validation, then later
when I hide that panel, there is no script rendered. This is speculation of course, but if this is the case.... I would think that this would be a bug, wouldn''t you.

Thoughts? Suggestions??

Anything would be cool,

Thanks,
Steve



Check your On_Load event, it''s generated by the IDE. Sometimes stuff gets
deleted from there. You might have to add the delegate manually

"Steve" <st***@nowhere.com> wrote in message
news:uN**************@TK2MSFTNGP09.phx.gbl...

OK, so I turned off validation. It still won''t post. I''ve put a breakpoint right in Page_Load and it doesn''t fire

here is the rendered HTML for the button
<input type="submit" name="Button_Finish" value="FINISH" id="Button_Finish" />
looks fine to me?.....

"Steve" <st***@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Hi-

I had this nice little wizard application running. It was comprised of
several Panel controls initially set w/ their visibility off except for the

first one, then as you progress through the page, a code-behind method


would

manage the correct panel''s visibility, giving the illusion of separate
steps. Fine, great.

All the panels has server button controls for "Next" and "Previous"
The last panel has a button control (server of course) that would call a
different Click event than the other buttons in the previous panels.

I did something, I don''t know what but when I click the button


"Finish"....

the event never fires, digging deeper I realized that Page_Load() isn''t


even

firing. So... what it does is make the window flash, then it all goes
white. The page never posts.

Here is the rendered HTML for the button:
<input type="submit" name="Button_Finish" value="FINISH" onclick="if
(typeof(Page_ClientValidate) == ''function'') Page_ClientValidate(); "
language="javascript" id="Button_Finish" />

I think it has something to do with the button being inside a panel.

Actually, I just found out why it''s not working.... there is no
Page_ClientValidate() function in the rendered HTML. I guess it creates


it

in the first panel that holds a button that Causes Validation, then later when I hide that panel, there is no script rendered. This is


speculation of

course, but if this is the case.... I would think that this would be a


bug,

wouldn''t you.

Thoughts? Suggestions??

Anything would be cool,

Thanks,
Steve




Check the InitilizeComponent() function. Most likly the Page_Load event
wiring has been removed by the designer.
Has happened to me a few times.
"Steve" <st***@nowhere.com> wrote in message
news:uN**************@TK2MSFTNGP09.phx.gbl...

OK, so I turned off validation. It still won''t post. I''ve put a breakpoint right in Page_Load and it doesn''t fire

here is the rendered HTML for the button
<input type="submit" name="Button_Finish" value="FINISH" id="Button_Finish" />
looks fine to me?.....

"Steve" <st***@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Hi-

I had this nice little wizard application running. It was comprised of
several Panel controls initially set w/ their visibility off except for the

first one, then as you progress through the page, a code-behind method


would

manage the correct panel''s visibility, giving the illusion of separate
steps. Fine, great.

All the panels has server button controls for "Next" and "Previous"
The last panel has a button control (server of course) that would call a
different Click event than the other buttons in the previous panels.

I did something, I don''t know what but when I click the button


"Finish"....

the event never fires, digging deeper I realized that Page_Load() isn''t


even

firing. So... what it does is make the window flash, then it all goes
white. The page never posts.

Here is the rendered HTML for the button:
<input type="submit" name="Button_Finish" value="FINISH" onclick="if
(typeof(Page_ClientValidate) == ''function'') Page_ClientValidate(); "
language="javascript" id="Button_Finish" />

I think it has something to do with the button being inside a panel.

Actually, I just found out why it''s not working.... there is no
Page_ClientValidate() function in the rendered HTML. I guess it creates


it

in the first panel that holds a button that Causes Validation, then later when I hide that panel, there is no script rendered. This is


speculation of

course, but if this is the case.... I would think that this would be a


bug,

wouldn''t you.

Thoughts? Suggestions??

Anything would be cool,

Thanks,
Steve




这篇关于我的按钮死了,我完全失去了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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