javascript函数在asp.net面板控件中不起作用 [英] javascript function not working in asp.net panel control
问题描述
朋友们,
我正在使用注册表,我将注册表保留在asp.net面板中,用于设置该注册表的默认按钮.由于这个原因,某些javascript功能无法正常工作.如果我删除面板,则javascript功能正常.但是我想为该页面设置一些默认按钮.该页面是内容页面,而不是普通页面.
任何对我有用的建议或解决方案.
谢谢您.
Hi frnds,
Iam working with registration form.I kept registration form in asp.net panel for set the default button for that registration form. Due to this some javascript function is not working.If i delete panel that javascript function is working fine. but i want to set some default button for that page.The page is content page not a normal page.
Any suggestions or solutions helpful to me.
Thank You
推荐答案
您可以使用
代替Panel.为了提高知名度,
在CS页面上使用-divAnc.attributes.add("Style","block")和divAnc.attributes.add("Style","none")
in place of Panel. For visibility,
use at cs page - divAnc.attributes.add("Style", "block") and divAnc.attributes.add("Style", "none")
尝试使用getelementbyid(controlname .clientid),而不是您使用控件的javascript中的getelementbyid(controlname).
希望它能起作用.
try using getelementbyid(controlname.clientid) instead of getelementbyid(controlname) in the javascript where u r using the controls.
Hope it works.
这篇关于javascript函数在asp.net面板控件中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!