单击按钮时没有任何反应 [英] Nothing happens when I click a button

查看:97
本文介绍了单击按钮时没有任何反应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在vb.net/vs.net中添加了一个Button控件(也尝试了LinkBut​​ton,结果相同)和

点击事件到我的web表单。


当我从浏览器(IE6)测试时,按钮显示但是当我点击它时

没有任何反应。在IE状态栏中,它显示javascript :{if

(typeof(Page_ClientValidate)!=''function''|| Page_ClientValidate())

__doPostBack(''btnTest'','''')}"但是当我点击它时绝对没有任何反应。


似乎有几个与此相关的已知错误,尤其是:
http://support.microsoft.com/?kbid=889877

和也许这一个:
http: //support.microsoft.com/default...;en-us;q324735


我试过运行aspnet_regiis.exe -c但没有区别。

我在win2k3服务器上运行.net framework 1.1。


任何想法都表示赞赏。谢谢。

I have added a Button control (also tried LinkButton with same result) and
some code to the click event to my web form in vb.net/vs.net.

When I test it from a browser (IE6) the button shows up but when I click it
nothing happens. In the IE status bar it says "javascript:{if
(typeof(Page_ClientValidate) != ''function'' || Page_ClientValidate())
__doPostBack(''btnTest'','''')}" but absolutely nothing happens when I click it.

There seems to be a couple of known bugs that are related to this, especially:
http://support.microsoft.com/?kbid=889877
and maybe this one:
http://support.microsoft.com/default...;en-us;q324735

I have tried running aspnet_regiis.exe -c but there is no difference.
I''m running .net framework 1.1 on a win2k3 server.

Any ideas are appreciated. Thanks.

推荐答案

您好,


是否在您的浏览器上启用了js?


Daniel

" maxfloden" <毫安******* @ discussions.microsoft.com> schrieb im Newsbeitrag

news:43 ********************************** @ microsof t.com ...
Hi,

is js enabled on your browser?

Daniel
"maxfloden" <ma*******@discussions.microsoft.com> schrieb im Newsbeitrag
news:43**********************************@microsof t.com...
我在vb.net/vs中添加了一个Button控件(也尝试了LinkBut​​ton,结果相同)和点击事件的一些代码到我的web表单。 net。

当我从浏览器(IE6)测试时,按钮显示但是当我点击它时它没有任何反应。在IE状态栏中,它显示javascript :{if
(typeof(Page_ClientValidate)!=''function''|| Page_ClientValidate())
__ doPostBack(''为btnTest '', '' '')}"但是当我点击它时绝对没有任何反应。

似乎有几个与此相关的已知错误,特别是:
http://support.microsoft.com/?kbid=889877
和也许这一个:
http: //support.microsoft.com/default...;en-us;q324735

我试过运行aspnet_regiis.exe -c但没有区别。
我'在win2k3服务器上运行.net framework 1.1。

任何想法都表示赞赏。谢谢。
I have added a Button control (also tried LinkButton with same result) and
some code to the click event to my web form in vb.net/vs.net.

When I test it from a browser (IE6) the button shows up but when I click
it
nothing happens. In the IE status bar it says "javascript:{if
(typeof(Page_ClientValidate) != ''function'' || Page_ClientValidate())
__doPostBack(''btnTest'','''')}" but absolutely nothing happens when I click
it.

There seems to be a couple of known bugs that are related to this,
especially:
http://support.microsoft.com/?kbid=889877
and maybe this one:
http://support.microsoft.com/default...;en-us;q324735

I have tried running aspnet_regiis.exe -c but there is no difference.
I''m running .net framework 1.1 on a win2k3 server.

Any ideas are appreciated. Thanks.



是的。此外我认为asp.net会检查浏览器并生成

正确的代码(即不使用javascript)如果它不是吗?
Yes it is. Besides I thought asp.net would check the browser and generate
proper code (ie not use javascript) if it wasn''t?


如果停用js,ASP.NET不能很好地工作。事实上,在HTML中只有一些控件可以执行回发,因此ASP.NET所做的是

它使用js将页面提交回服务器。由于这是对b / b
的限制,HTML ASP.NET没有机会生成正确的代码。如果你禁用js。

如果启用ja你会看到你的按钮工作。


HTHs


Daniel Walzenbach

" maxfloden" <毫安******* @ discussions.microsoft.com> schrieb im Newsbeitrag

新闻:F8 ********************************** @ microsof t.com ...
ASP.NET does not work very well if you deactivate js. In fact, in HTML only
a few controls can perform a postback and therefor what ASP.NET does is that
it uses js to submit the page back to the server. As this is a limitation of
HTML ASP.NET has no chance to "generate proper code" if you disable js.
If you enable ja you''ll see your button work.

HTHs

Daniel Walzenbach
"maxfloden" <ma*******@discussions.microsoft.com> schrieb im Newsbeitrag
news:F8**********************************@microsof t.com...
是的。此外我认为asp.net会检查浏览器并生成正确的代码(即不使用javascript),如果它不是吗?
Yes it is. Besides I thought asp.net would check the browser and generate
proper code (ie not use javascript) if it wasn''t?



这篇关于单击按钮时没有任何反应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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