在按钮单击页面上创建默认URL并且按钮单击事件不起作用 [英] on button click page creates default url and button click event is not working

查看:113
本文介绍了在按钮单击页面上创建默认URL并且按钮单击事件不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按钮点击页面加载页面加载方法和浏览器创建如下所示的URL



HTTP://本地主机:16767 / Index.aspx的ctl00%24ContentPlaceHolder1%24btnDarkblue.x = 13&安培; ctl00%24ContentPlaceHolder1%24btnDarkblue.y = 20 [ ^ ]





而不是调用buttonclick方法



以上url btnDarkblue是按钮ID



如果有人有解决方案PLZ回复。

on button click page loading page load method and browser creates url like below

http://localhost:16767/Index.aspx?ctl00%24ContentPlaceHolder1%24btnDarkblue.x=13&ctl00%24ContentPlaceHolder1%24btnDarkblue.y=20[^]


and not calling buttonclick method

in above url btnDarkblue is button id

If anyone have solution plz reply.

推荐答案

Quote:

我做了..谢谢

只是从未答复的列表中移动。

Just to move from unanswered list.


有时我们无法触发事件e按钮,您应该尝试清理解决方案,然后再次构建它。如果它仍然不起作用,你应该添加其他按钮来替换它。
Sometimes we cannot trigger the event of the button, you should try to clean the solution, then build it again. In case it still not work, you should add other button to replace it.



这篇关于在按钮单击页面上创建默认URL并且按钮单击事件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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