如果asp.net controlar具有相同的控件ID,那么它是否被执行? [英] If asp.net controlar has same control ID then,is it executed?

查看:97
本文介绍了如果asp.net controlar具有相同的控件ID,那么它是否被执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如果两个按钮具有相同的控制ID,那么它是否可执行?

如果是,那么请给我一些解释。并且对于NO会在哪个事件中发生错误?

解决方案

亲爱的,

您不能为多个控件提供相同的ID ASP.NET但您可以为HTML控件提供多个ID。


如果您尝试了一次,您将获得答案。如果您创建两个具有相同ID的asp控件,则页面将不会被编译。

Hi,

If two buttons has same control ID then is it executable?
If YES then kindly give me some explanation.And for NO which errors will occurs in which event?

解决方案

Dear,
you can't give the same ID for multiple controls in ASP.NET but you can give multiple ID to HTML controls.


If you tried it once you will get the answers.If you create two asp control with same ID the page will not complied.


这篇关于如果asp.net controlar具有相同的控件ID,那么它是否被执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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