使用asp.net在同一页面中发生用户控制冲突 [英] User control conflict in same page using asp.net

查看:82
本文介绍了使用asp.net在同一页面中发生用户控制冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在VS2008中使用asp.net。



我有具有相同div id的两个用户控件。当我在带有客户端ID的网页中使用用户控件(使用java脚本)时,控件在网页上是冲突的。



我不想与这两个用户冲突控制在网页中。怎么解决..



请给我任何建议....



问候

Mukesh

Hi All,

I am using asp.net in with VS2008.

I have two user control with same div id. when i use both user control in web page with client id (using java script )the control are conflict on web page.

I don't want to conflict both user control in web page. how to solve ..

please give me any suggestion's....

Regards
Mukesh

推荐答案

根据标准ID必须是唯一的!

见这里http://www.w3.org/TR/html401/struct/global.html#h-7.5.2 [ ^ ]

这意味着您必须更改ID ...
According to standard id must be unique!
See here http://www.w3.org/TR/html401/struct/global.html#h-7.5.2[^]
it means that you have to change on of the id's...


这篇关于使用asp.net在同一页面中发生用户控制冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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